fix: dev cmd didn't watch files due to import mangling
Appearently the esModuleInterop flag in TypeScript is not compatible with node-watch, and the import helper was mangling the import as a result and causing an error in the dev command that resulted in files not being watched. This fixes that import issue and adds an e2e test to help prevent a regression of this issue in the future.
This commit is contained in:
parent
cc16bc9bf4
commit
d4f713e5c5
7 changed files with 200 additions and 5 deletions
|
|
@ -29,7 +29,9 @@
|
|||
"preversion": "npm run reset && npm test",
|
||||
"release": "npm version",
|
||||
"reset": "npm run clean && npm ci",
|
||||
"test": "ts-node --project=test/tsconfig.json test/run-tests.ts"
|
||||
"test": "npm run test:unit && npm run test:e2e",
|
||||
"test:unit": "cd test && ts-node --script-mode ./run-tests.ts",
|
||||
"test:e2e": "cd test && ts-node --script-mode ./run-e2e.ts"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "~10",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue