We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
package.json:
{ "scripts": { "test": "tsc" }, "dependencies": { "typescript": "^3.7.5" } }
.npmrc:
node-options="--loader=./loader.js"
loader.js:
// Custom loader. May be empty for test
Command:
npm test
Result:
Node 13.8.0:
tsc
Node 13.9.0:
tsc TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension "" for c:\workspace\node_13.9.0\node_modules\typescript\bin\tsc at Loader.defaultGetFormat [as _getFormat] (internal/modules/esm/get_format.js:70:15)
Why ? Becacuse a lot of tools has bin specification without scripts extension: ex.
bin
"bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" },
Why did you introduce a change that blocks npm scripts?
package.json:
.npmrc:
loader.js:
Command:
npm testResult:
Node 13.8.0:
Node 13.9.0:
Why ? Becacuse a lot of tools has
binspecification without scripts extension: ex.Why did you introduce a change that blocks npm scripts?