Skip to content

Commit

Permalink
build: 프로덕션에서도 ts-node 사용 (#594)
Browse files Browse the repository at this point in the history
tsc에서 paths를 변경하지 않아 추후 번들러로 변경해야 합니다.
  • Loading branch information
scarf005 authored Jul 23, 2023
1 parent 3b4418e commit d678271
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
"node": ">=20.3.1 || >=18.16.1 <20.0.0"
},
"scripts": {
"start": "node dist/server.js",
"build": "npx tsc -p ./tsconfig.prod.json",
"dev": "nodemon --watch \"src/**/*.ts\" --exec \"ts-node\" -r tsconfig-paths/register src/server.ts",
"prod": "npx tsc -p ./tsconfig.prod.json && npm start",
"start": "ts-node -r tsconfig-paths/register --project ./tsconfig.prod.json src/server.ts",
"build": "echo '번들러 사용중이지 않아 빌드시 tsconfig paths 적용이 불가합니다' && exit 1",
"dev": "nodemon --watch \"src/**/*.ts\" --exec ts-node -r tsconfig-paths/register src/server.ts",
"prod": "pnpm start",
"lint": "eslint --fix --ext .js,.ts src",
"test": "jest"
},
Expand Down

0 comments on commit d678271

Please sign in to comment.