Skip to content

Commit

Permalink
chore: add --experimental-specifier-resolution=node flag to ts-node
Browse files Browse the repository at this point in the history
  • Loading branch information
guilhiz committed Apr 13, 2023
1 parent 68b7560 commit 0934f2a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"start": "node build/server.js",
"build": "tsc",
"postinstall": "husky install",
"dev": "ts-node ./src/server.ts",
"dev": "node --experimental-specifier-resolution=node --loader ts-node/esm ./src/server.ts",
"lint": "eslint src --max-warnings=0",
"typecheck": "tsc --project tsconfig.json --noEmit"
},
Expand Down
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"noImplicitAny": true,
"skipLibCheck": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true
"experimentalDecorators": true,
"forceConsistentCasingInFileNames": true
},
"ts-node": {
"esm": true
Expand Down

0 comments on commit 0934f2a

Please sign in to comment.