fix: use npx for nest build commands to avoid permission issues

This commit is contained in:
lichao 2026-02-25 12:04:54 +00:00
parent 1dc6715345
commit c505421544
2 changed files with 5 additions and 5 deletions

View File

@ -6,11 +6,11 @@
"private": true,
"license": "UNLICENSED",
"scripts": {
"build": "nest build",
"build": "npx nest build",
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
"start": "nest start",
"start:dev": "nest start --watch",
"start:debug": "nest start --debug --watch",
"start": "npx nest start",
"start:dev": "npx nest start --watch",
"start:debug": "npx nest start --debug --watch",
"start:prod": "node dist/main",
"lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",
"test": "jest",

View File

@ -12,7 +12,7 @@
"dest": "dist/main.js"
}
],
"buildCommand": "pnpm build",
"buildCommand": "npx nest build",
"outputDirectory": "dist",
"env": {
"NODE_ENV": "production"