Skip to content

Commit 81d9a91

Browse files
committed
Start with nodemon fixed
1 parent 3f61e58 commit 81d9a91

File tree

5 files changed

+56
-12
lines changed

5 files changed

+56
-12
lines changed

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
node_modules
1+
node_modules
2+
dist

nodemon.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"watch": ["src"],
2+
"watch": ["./"],
33
"ext": ".ts,.js",
44
"ignore": [],
5-
"exec": "npx ts-node ./app.ts"
5+
"exec": "npx ts-node --esm ./app.ts"
66
}

package-lock.json

+42-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+6-5
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
"name": "stackbuilders-repositories-api",
33
"version": "1.0.0",
44
"description": "",
5-
"main": "index.js",
5+
"main": "app.ts",
66
"scripts": {
77
"test": "NODE_OPTIONS=--experimental-vm-modules jest",
8-
"dev": "npx nodemon",
8+
"dev": "nodemon --exec ts-node ./app.ts",
99
"start": "node app.js"
1010
},
1111
"repository": {
@@ -23,18 +23,19 @@
2323
"axios": "^1.5.1",
2424
"eslint": "^8.51.0",
2525
"express": "^4.18.2",
26-
"supertest": "^6.3.3",
27-
"typescript": "^5.2.2"
26+
"supertest": "^6.3.3"
2827
},
2928
"devDependencies": {
29+
"@tsconfig/node-lts-strictest-esm": "^18.12.1",
3030
"@types/express": "^4.17.20",
3131
"@types/jest": "^29.5.6",
3232
"@types/supertest": "^2.0.15",
3333
"eslint-config-prettier": "^9.0.0",
3434
"jest": "^29.7.0",
3535
"nodemon": "^3.0.1",
3636
"ts-jest": "^29.1.1",
37-
"ts-node": "^10.9.1"
37+
"ts-node": "^10.9.1",
38+
"typescript": "^5.2.2"
3839
},
3940
"type": "module",
4041
"jest": {

tsconfig.json

+4
Original file line numberDiff line numberDiff line change
@@ -99,5 +99,9 @@
9999
/* Completeness */
100100
// "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */
101101
"skipLibCheck": true /* Skip type checking all .d.ts files. */
102+
},
103+
"ts-node": {
104+
"esm": true,
105+
"experimentalSpecifierResolution": "node"
102106
}
103107
}

0 commit comments

Comments
 (0)