"adjust nodemon delay timing for TypeScript watch scripts across all projects"

This commit is contained in:
louiscklaw
2025-06-15 16:12:02 +08:00
parent 9943283eff
commit 48e1f821ad
3 changed files with 5 additions and 5 deletions

View File

@@ -21,7 +21,7 @@
"re:build-npm": "npm run clean && npm install && npm run build", "re:build-npm": "npm run clean && npm install && npm run build",
"tsc:dev": "yarn dev & yarn tsc:watch", "tsc:dev": "yarn dev & yarn tsc:watch",
"tsc:print": "npx tsc --showConfig", "tsc:print": "npx tsc --showConfig",
"tsc:w": "npx nodemon --delay 3 --ext ts,tsx --exec \"yarn tsc\"", "tsc:w": "npx nodemon --delay 1 --ext ts,tsx --exec \"yarn tsc\"",
"tsc:watch": "tsc --noEmit --watch", "tsc:watch": "tsc --noEmit --watch",
"tsc": "tsc --noEmit", "tsc": "tsc --noEmit",
"migrate": "npx prisma migrate dev --skip-seed", "migrate": "npx prisma migrate dev --skip-seed",
@@ -34,7 +34,7 @@
"db:studio": "prisma studio", "db:studio": "prisma studio",
"db:studio:w": "npx nodemon --delay 1 --watch prisma --ext \"prisma\" --exec \"yarn db:studio\"", "db:studio:w": "npx nodemon --delay 1 --watch prisma --ext \"prisma\" --exec \"yarn db:studio\"",
"db:dev": "yarn db:push && yarn seed && yarn dev", "db:dev": "yarn db:push && yarn seed && yarn dev",
"db:dev:w": "npx nodemon --delay 1 --ext \"ts,tsx,prisma\" --exec \"yarn db:dev\"" "db:dev:w": "npx nodemon --delay 3 --ext \"ts,tsx,prisma\" --exec \"yarn db:dev\""
}, },
"engines": { "engines": {
"node": ">=20" "node": ">=20"

View File

@@ -23,7 +23,7 @@
"re:build-npm": "npm run clean && npm install && npm run build", "re:build-npm": "npm run clean && npm install && npm run build",
"tsc:dev": "yarn dev & yarn tsc:watch", "tsc:dev": "yarn dev & yarn tsc:watch",
"tsc:print": "npx tsc --showConfig", "tsc:print": "npx tsc --showConfig",
"tsc:w": "npx nodemon --delay 3 --ext ts,tsx --exec \"yarn tsc\"", "tsc:w": "npx nodemon --delay 1 --ext ts,tsx --exec \"yarn tsc\"",
"tsc:watch": "tsc --noEmit --watch", "tsc:watch": "tsc --noEmit --watch",
"tsc": "tsc --noEmit" "tsc": "tsc --noEmit"
}, },

View File

@@ -90,9 +90,9 @@
"start": "npm run dev", "start": "npm run dev",
"tsc:dev": "yarn dev & yarn tsc:watch", "tsc:dev": "yarn dev & yarn tsc:watch",
"tsc:print": "npx tsc --showConfig", "tsc:print": "npx tsc --showConfig",
"tsc:w": "npx nodemon --delay 3 --ext ts,tsx --exec \"yarn tsc\"", "tsc:w": "npx nodemon --delay 1 --ext ts,tsx --exec \"yarn tsc\"",
"tsc:watch": "tsc --noEmit --watch", "tsc:watch": "tsc --noEmit --watch",
"tsc": "tsc --noEmit" "tsc": "tsc --noEmit"
}, },
"version": "0.0.1" "version": "0.0.1"
} }