diff --git a/BE/package-lock.json b/BE/package-lock.json index 8a39427..80e3941 100644 --- a/BE/package-lock.json +++ b/BE/package-lock.json @@ -18,9 +18,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", @@ -40,6 +40,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", @@ -3758,6 +3759,24 @@ "integrity": "sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==", "devOptional": true }, + "node_modules/cross-env": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/cross-env/-/cross-env-7.0.3.tgz", + "integrity": "sha512-+/HKd6EgcQCJGh2PSjZuUitQBQynKor4wrFbRg4DtAgS1aWO+gU52xpH7M9ScGgXSYmAVS9bIJ8EzuaGw0oNAw==", + "dev": true, + "dependencies": { + "cross-spawn": "^7.0.1" + }, + "bin": { + "cross-env": "src/bin/cross-env.js", + "cross-env-shell": "src/bin/cross-env-shell.js" + }, + "engines": { + "node": ">=10.14", + "npm": ">=6", + "yarn": ">=1" + } + }, "node_modules/cross-spawn": { "version": "7.0.3", "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", diff --git a/BE/package.json b/BE/package.json index 4daffd2..6cc3a27 100644 --- a/BE/package.json +++ b/BE/package.json @@ -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", @@ -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", @@ -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",