Skip to content

Commit

Permalink
feat: register tsconfig paths in start script
Browse files Browse the repository at this point in the history
  • Loading branch information
katywings committed Jun 10, 2020
1 parent e42f94c commit 9f137e6
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 2 deletions.
35 changes: 35 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@
"microbundle": "github:developit/microbundle#master",
"prettier": "^2.0.5",
"standard-version": "^8.0.0",
"ts-jest": "^26.1.0"
"ts-jest": "^26.1.0",
"tsconfig-paths": "^3.9.0"
},
"dependencies": {
"ts-node": "^8.10.2",
Expand Down
2 changes: 1 addition & 1 deletion scripts/start.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

const { spawn } = require("./lib");

spawn("npx", ["ts-node", "lib/main.ts"]);
spawn("npx", ["ts-node", "-r", "tsconfig-paths/register", "lib/main.ts"]);

0 comments on commit 9f137e6

Please sign in to comment.