Skip to content

Commit

Permalink
feat: cross-env를 통해 NODE_ENV 설정
Browse files Browse the repository at this point in the history
- cross-env 설치
- NODE_ENV를 실행 환경마다 다르게 설정
  • Loading branch information
JoonSoo-Kim committed Nov 21, 2023
1 parent 1bb072a commit e995e29
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 6 deletions.
21 changes: 20 additions & 1 deletion BE/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 6 additions & 5 deletions BE/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@
"scripts": {
"build": "nest build",
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
"start": "nest start",
"start:dev": "nest start --watch",
"start": "cross-env NODE_ENV=production nest start",
"start:dev": "cross-env NODE_ENV=dev nest start --watch",
"start:debug": "nest start --debug --watch",
"start:prod": "node dist/main",
"lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",
"test": "jest",
"test": "cross-env NODE_ENV=test jest",
"test:watch": "jest --watch",
"test:cov": "jest --coverage",
"test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
"test:e2e": "jest --config ./test/jest-e2e.json"
"test:e2e": "cross-env NODE_ENV=test jest --config ./test/jest-e2e.json"
},
"dependencies": {
"@nestjs/common": "^10.0.0",
Expand All @@ -29,9 +29,9 @@
"@nestjs/typeorm": "^10.0.0",
"@types/dotenv": "^8.2.0",
"@types/passport-jwt": "^3.0.13",
"aws-sdk": "^2.1499.0",
"bcryptjs": "^2.4.3",
"class-transformer": "^0.5.1",
"aws-sdk": "^2.1499.0",
"class-validator": "^0.14.0",
"dotenv": "^16.3.1",
"mysql2": "^3.6.3",
Expand All @@ -51,6 +51,7 @@
"@types/supertest": "^2.0.12",
"@typescript-eslint/eslint-plugin": "^6.0.0",
"@typescript-eslint/parser": "^6.0.0",
"cross-env": "^7.0.3",
"eslint": "^8.42.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-prettier": "^5.0.0",
Expand Down

0 comments on commit e995e29

Please sign in to comment.