后端建立 TypeScript 构建链路
This commit is contained in:
@@ -9,11 +9,13 @@
|
||||
"agiso:auto-delivery:test": "node scripts/test-agiso-auto-delivery.js",
|
||||
"cleanup:dev-data": "node scripts/cleanup-dev-data.js",
|
||||
"seed:dev-data": "node scripts/seed-dev-data.js",
|
||||
"db:migrate": "node src/db/migrate.js",
|
||||
"dev": "node --watch-path=src --watch-path=config --watch-preserve-output src/index.js",
|
||||
"test": "node --test $(find src -name '*.test.js' -print)",
|
||||
"build": "tsc -p tsconfig.build.json && rm -rf dist/db/migrations && mkdir -p dist/db && cp -R src/db/migrations dist/db/migrations",
|
||||
"db:migrate": "tsx src/db/migrate.js",
|
||||
"dev": "tsx watch --clear-screen=false --include config src/index.js",
|
||||
"test": "node --import tsx --test $(find src -name '*.test.js' -print)",
|
||||
"typecheck": "tsc -p tsconfig.json --noEmit",
|
||||
"start": "node src/index.js"
|
||||
"start": "node dist/index.js",
|
||||
"start:src": "tsx src/index.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"express": "^5.1.0",
|
||||
@@ -22,6 +24,8 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "^25.6.0",
|
||||
"@types/pg": "^8.20.0",
|
||||
"tsx": "^4.22.3",
|
||||
"typescript": "^6.0.2"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user