Update rollup-plugin-typescript2 to v0.34.1 #171
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This fixes the "tslib" package.json not being defined correctly bug.
This is a direct fix to #169
Previous error:
PS C:\code\temp\lllllllll\screeps-typescript-starter> npm run push-pserver
Error loading
tslib
helper library.[!] Error: Package subpath './package.json' is not defined by "exports" in C:\code\temp\lllllllll\screeps-typescript-starter\node_modules\tslib\package.json
Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './package.json' is not defined by "exports" in C:\code\temp\lllllllll\screeps-typescript-starter\node_modules\tslib\package.json
at new NodeError (node:internal/errors:399:5)
at exportsNotFound (node:internal/modules/esm/resolve:361:10)
at resolveExports (node:internal/modules/cjs/loader:538:36)
at Module._findPath (node:internal/modules/cjs/loader:607:31)
at Module._resolveFilename (node:internal/modules/cjs/loader:1033:27)
at Module._load (node:internal/modules/cjs/loader:893:27)
at Module.require (node:internal/modules/cjs/loader:1113:19)
at require (node:internal/modules/cjs/helpers:103:18)
at Object. (C:\code\temp\lllllllll\screeps-typescript-starter\node_modules\rollup-plugin-typescript2\dist\rollup-plugin-typescript2.cjs.js:25170:26)