screeps-typescript-starter
screeps-typescript-starter copied to clipboard
Updating dependencies, especially Rollup and TypeScript
trafficstars
Are there any plans to update this package properly to the newest versions of the various dependencies? By doing so manually I noticed the following issues:
source-mapMUST stay at 0.6.1 for theErrorMapperto work sinceSourceMapConsumerhas been slightly reworked.- Upgrading
rollupto 1.0.0 will yield some deprecation warnings:
(!) rpt2 plugin: The ongenerate hook used by plugin rpt2 is deprecated. The generateBundle hook should be used instead.
(!) rpt2 plugin: The onwrite hook used by plugin rpt2 is deprecated. The generateBundle hook should be used instead.
(!) screeps plugin: The ongenerate hook used by plugin screeps is deprecated. The generateBundle hook should be used instead.
(!) screeps plugin: The onwrite hook used by plugin screeps is deprecated. The generateBundle hook should be used instead.
- I wasn't sure whether the rpt2 or rpt3 plugin are the way to go for TypeScript 3.2+.
@ChristianIvicevic there is also another issue with source-map:
Error: Unknown module 'fs'
fs (imported by node_modules/source-map/lib/read-wasm.js, commonjs-external:fs)
path (imported by node_modules/source-map/lib/read-wasm.js, commonjs-external:path)
@ChristianIvicevic there is also another issue with source-map:
Error: Unknown module 'fs'fs (imported by node_modules/source-map/lib/read-wasm.js, commonjs-external:fs) path (imported by node_modules/source-map/lib/read-wasm.js, commonjs-external:path)
Same issue here. Had to remove the usage of ErrorMapper in main.ts....
The new source-map module is async only, so can't work with screeps. It needs to be pinned to =0.6.1, which is the last version that was not async.