Skip to content

Commit d5847ad

Browse files
authored
chore: use tsx for development server execution (#2)
1 parent d7ba00f commit d5847ad

File tree

2 files changed

+287
-1
lines changed

2 files changed

+287
-1
lines changed

Diff for: package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"dev": "blocklet dev",
77
"lint": "tsc --noEmit && eslint src api/src --ext .mjs,.js,.jsx,.ts,.tsx",
88
"lint:fix": "npm run lint -- --fix",
9-
"start": "cross-env NODE_ENV=development nodemon api/dev.ts -w api",
9+
"start": "cross-env NODE_ENV=development nodemon --exec tsx api/dev.ts -w api",
1010
"clean": "node scripts/build-clean.mjs",
1111
"bundle": "tsc --noEmit && npm run bundle:client && npm run bundle:api",
1212
"bundle:client": "vite build",
@@ -84,6 +84,7 @@
8484
"rimraf": "^5.0.10",
8585
"simple-git-hooks": "^2.11.1",
8686
"ts-node": "^10.9.2",
87+
"tsx": "^4.19.3",
8788
"typescript": "^5.7.3",
8889
"vite": "^5.4.14",
8990
"vite-plugin-blocklet": "^0.9.29",

0 commit comments

Comments
 (0)