Skip to content

Commit c86e35a

Browse files
committed
fix absoulute imports
1 parent 74f8286 commit c86e35a

File tree

3 files changed

+90
-2
lines changed

3 files changed

+90
-2
lines changed

Projects/BooksLibrary/package-lock.json

Lines changed: 85 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Projects/BooksLibrary/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66
"scripts": {
77
"build": "tsc",
88
"rebuild": "rimraf dist && tsc",
9-
"start": "tsc && ts-node --files ./src/index.ts",
10-
"start:dev": "tsc && ts-node --files ./src/index.ts --watch",
9+
"start": "ts-node -r tsconfig-paths/register src/index.ts",
1110
"lint:fix": "eslint ./src/** --fix"
1211
},
1312
"author": "akash jadhav",
@@ -24,6 +23,7 @@
2423
"eslint-config-google": "^0.14.0",
2524
"prettier": "2.5.1",
2625
"ts-node": "^10.7.0",
26+
"tsconfig-paths": "^3.13.0",
2727
"typescript": "^4.6.2"
2828
},
2929
"dependencies": {

Projects/BooksLibrary/tsconfig.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919
"diagnostics": true,
2020
"baseUrl": "./src",
2121
"rootDir": "./src",
22+
"paths": {
23+
"/*": ["src/*"]
24+
},
2225
"typeRoots": ["@types", "node_modules/@types"]
2326
},
2427
"include": ["src/**/*"],

0 commit comments

Comments
 (0)