Skip to content

Commit

Permalink
chore: add npm script
Browse files Browse the repository at this point in the history
  • Loading branch information
kuizuo committed Nov 17, 2023
1 parent c486e68 commit 3565d07
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions apps/api/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,4 @@ lerna-debug.log*
!.vscode/extensions.json

.nestjs_repl_history
out
3 changes: 2 additions & 1 deletion apps/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"dev": "npm run start",
"dev:debug": "npm run start:debug",
"repl": "npm run start -- --entryFile repl",
"bundle": "rimraf out && npm run build && ncc build dist/main.js -o out -m -t && chmod +x out/index.js",
"start": "cross-env NODE_ENV=development nest start -w --path tsconfig.json",
"start:debug": "cross-env NODE_ENV=development nest start --debug --watch",
"start:prod": "cross-env NODE_ENV=production node dist/src/main",
Expand All @@ -21,7 +22,7 @@
"test": "jest",
"test:watch": "jest --watch",
"doc": "compodoc -p tsconfig.json -s",
"typeorm": "NODE_ENV=development typeorm -d ./dist/config/modules/database.config.js",
"typeorm": "NODE_ENV=development typeorm -d ./dist/config/database.config.js",
"migration:create": "typeorm migration:create",
"migration:generate": "typeorm -- migration:generate",
"migration:run": "typeorm -- migration:run",
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"bootstrap": "pnpm install",
"build": "turbo run build",
"dev": "turbo run dev",
"bundle": "pnpm -C \"apps/api\" run bundle",
"test": "turbo run test",
"lint": "turbo run lint",
"clean": "turbo run clean",
Expand Down

0 comments on commit 3565d07

Please sign in to comment.