Description
I just created a new repo with this as a template and the rollup wasn't working.
I'm using node v18.12.1 and had to remove the thing in package.json requiring node v10 or v12, so I don't know if this happens on those versions, but they're quite old, so maybe update it. I don't know why it's there so I don't know what the right move here is.
At first I got this error
Error loading `tslib` helper library. [!] Error: Package subpath './package.json' is not defined by "exports" in /home/molion/Documents/screeps/node_modules/tslib/package.json
I fixed it by updating all the rollup stuff to the latest version.
Then I got some errors complaining about rollup.config.js probably being an esm file, the message suggested renaming it to .mjs. I tried that, but got some error complaining about use if require().
I changed back to .js and rewrote it to using require instead of import.
I then made a small change because of @rollup/plugin-node-resolve exports not being what was expected.
Now it's working.
I could submit a PR with these changes, but I'm not sure what to do about the node version thing.