-
-
Notifications
You must be signed in to change notification settings - Fork 546
Closed
Description
Expected Behavior
No errors.
Actual Behavior
"Unable to require file" error.
Steps to reproduce the problem
- Create a package (e.g. using
npm pack) with the following files:
npm-postinstall.ts:
console.log('hello');
import * as x from './x';
console.log('hello2', typeof x);
package.json:
{
"name": "package1",
"version": "0.0.0",
"scripts": {
"postinstall": "ts-node --skip-ignore npm-postinstall"
},
"dependencies": {
"ts-node": "^8.6.2",
"typescript": "^3.7.5"
}
}
x.ts:
export const x = 1;
- Install that package:
npm install package1-0.0.0.tgz
Works fine on Windows
Specifications
- ts-node version: 8.6.2
- node version: 12.15.0
- Operating system and version: Ubuntu
- If Windows, are you using WSL or WSL2?:
Metadata
Metadata
Assignees
Labels
No labels