diff --git a/.yarn/cache/@types-cookie-parser-npm-1.4.7-b74a485836-7b87c59420.zip b/.yarn/cache/@types-cookie-parser-npm-1.4.7-b74a485836-7b87c59420.zip deleted file mode 100644 index c18bd55..0000000 Binary files a/.yarn/cache/@types-cookie-parser-npm-1.4.7-b74a485836-7b87c59420.zip and /dev/null differ diff --git a/.yarn/cache/cookie-npm-0.4.1-cc5e2ebb42-0f2defd60a.zip b/.yarn/cache/cookie-npm-0.4.1-cc5e2ebb42-0f2defd60a.zip deleted file mode 100644 index 2796ed2..0000000 Binary files a/.yarn/cache/cookie-npm-0.4.1-cc5e2ebb42-0f2defd60a.zip and /dev/null differ diff --git a/.yarn/cache/cookie-parser-npm-1.4.6-a68f84d02a-1e5a63aa82.zip b/.yarn/cache/cookie-parser-npm-1.4.6-a68f84d02a-1e5a63aa82.zip deleted file mode 100644 index 6feae6f..0000000 Binary files a/.yarn/cache/cookie-parser-npm-1.4.6-a68f84d02a-1e5a63aa82.zip and /dev/null differ diff --git a/Dockerfile-deploy b/Dockerfile-deploy index 0f5a10a..a578c37 100755 --- a/Dockerfile-deploy +++ b/Dockerfile-deploy @@ -2,7 +2,9 @@ FROM node:20.3-alpine3.17 AS base WORKDIR /usr/src/app -COPY package.json yarn.lock .yarnrc.yml /usr/src/app/ +COPY yarn.lock .yarnrc.yml /usr/src/app/ +COPY package-deploy.json ./package.json + COPY .yarn /usr/src/app/.yarn RUN yarn install @@ -28,7 +30,6 @@ FROM node:20.3-alpine3.17 AS release WORKDIR /home/node -COPY package-deploy.json /home/node/package.json COPY --from=build /usr/src/app/prisma /home/node/prisma COPY --from=build /usr/src/app/node_modules /home/node/node_modules COPY --from=build /usr/src/app/dist /home/node/src diff --git a/package-deploy.json b/package-deploy.json index 91473c3..5621854 100755 --- a/package-deploy.json +++ b/package-deploy.json @@ -14,7 +14,6 @@ "@nestjs/core": "^10.3.3", "@nestjs/platform-express": "^10.3.3", "@prisma/client": "^5.11.0", - "cookie-parser": "^1.4.6", "crypto-js": "^4.2.0", "date-fns": "^2.30.0", "express": "^4.18.3", @@ -30,5 +29,24 @@ "winston": "^3.11.0", "winston-daily-rotate-file": "^4.7.1", "zod": "^3.22.4" + }, + "devDependencies": { + "@types/crypto-js": "^4.2.2", + "@types/express": "^4.17.21", + "@types/node": "^20.11.24", + "@types/nodemailer": "^6.4.14", + "@typescript-eslint/eslint-plugin": "^7.1.0", + "@typescript-eslint/parser": "^7.1.0", + "dotenv": "^16.4.5", + "eslint": "^8.57.0", + "eslint-config-airbnb-base": "^15.0.0", + "eslint-config-airbnb-typescript": "^18.0.0", + "eslint-config-prettier": "^9.1.0", + "eslint-plugin-import": "^2.29.1", + "prettier": "^3.2.5", + "ts-node": "^10.9.2", + "ts-paths-esm-loader": "^1.4.3", + "tsconfig-paths": "^4.2.0", + "typescript": "^5.4.2" } } diff --git a/package.json b/package.json index ae445d3..b71d578 100755 --- a/package.json +++ b/package.json @@ -20,7 +20,6 @@ "@nestjs/core": "^10.3.3", "@nestjs/platform-express": "^10.3.3", "@prisma/client": "^5.11.0", - "cookie-parser": "^1.4.6", "crypto-js": "^4.2.0", "date-fns": "^2.30.0", "express": "^4.18.3", @@ -39,7 +38,6 @@ }, "devDependencies": { "@jest/globals": "^29.7.0", - "@types/cookie-parser": "^1", "@types/crypto-js": "^4.2.2", "@types/express": "^4.17.21", "@types/jest": "^29.5.12", diff --git a/yarn.lock b/yarn.lock index 49a6ece..9df3cac 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1202,15 +1202,6 @@ __metadata: languageName: node linkType: hard -"@types/cookie-parser@npm:^1": - version: 1.4.7 - resolution: "@types/cookie-parser@npm:1.4.7" - dependencies: - "@types/express": "npm:*" - checksum: 10/7b87c59420598e686a57e240be6e0db53967c3c8814be9326bf86609ee2fc39c4b3b9f2263e1deba43526090121d1df88684b64c19f7b494a80a4437caf3d40b - languageName: node - linkType: hard - "@types/crypto-js@npm:^4.2.2": version: 4.2.2 resolution: "@types/crypto-js@npm:4.2.2" @@ -1230,7 +1221,7 @@ __metadata: languageName: node linkType: hard -"@types/express@npm:*, @types/express@npm:^4.17.21": +"@types/express@npm:^4.17.21": version: 4.17.21 resolution: "@types/express@npm:4.17.21" dependencies: @@ -2301,16 +2292,6 @@ __metadata: languageName: node linkType: hard -"cookie-parser@npm:^1.4.6": - version: 1.4.6 - resolution: "cookie-parser@npm:1.4.6" - dependencies: - cookie: "npm:0.4.1" - cookie-signature: "npm:1.0.6" - checksum: 10/1e5a63aa82e8eb4e02d2977c6902983dee87b02e87ec5ec43ac3cb1e72da354003716570cd5190c0ad9e8a454c9d3237f4ad6e2f16d0902205a96a1c72b77ba5 - languageName: node - linkType: hard - "cookie-signature@npm:1.0.6": version: 1.0.6 resolution: "cookie-signature@npm:1.0.6" @@ -2318,13 +2299,6 @@ __metadata: languageName: node linkType: hard -"cookie@npm:0.4.1": - version: 0.4.1 - resolution: "cookie@npm:0.4.1" - checksum: 10/0f2defd60ac93645ee31e82d11da695080435eb4fe5bed9b14d2fc4e0621a66f4c5c60f3eb05761df08a9d6279366e8646edfd1654f359d0b5afc25304fc4ddc - languageName: node - linkType: hard - "cookie@npm:0.5.0": version: 0.5.0 resolution: "cookie@npm:0.5.0" @@ -6292,7 +6266,6 @@ __metadata: "@nestjs/core": "npm:^10.3.3" "@nestjs/platform-express": "npm:^10.3.3" "@prisma/client": "npm:^5.11.0" - "@types/cookie-parser": "npm:^1" "@types/crypto-js": "npm:^4.2.2" "@types/express": "npm:^4.17.21" "@types/jest": "npm:^29.5.12" @@ -6300,7 +6273,6 @@ __metadata: "@types/nodemailer": "npm:^6.4.14" "@typescript-eslint/eslint-plugin": "npm:^7.1.0" "@typescript-eslint/parser": "npm:^7.1.0" - cookie-parser: "npm:^1.4.6" crypto-js: "npm:^4.2.0" date-fns: "npm:^2.30.0" dotenv: "npm:^16.4.5"