switch from pnpm to npm

This commit is contained in:
Amruth Pillai
2023-11-14 19:05:24 +01:00
parent 277bb2a70b
commit 8ae9215309
6 changed files with 34941 additions and 20523 deletions

View File

@ -1,4 +0,0 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
pnpm exec commitlint --edit $1

View File

@ -4,37 +4,31 @@ WORKDIR /app
ARG NX_CLOUD_ACCESS_TOKEN
ENV PNPM_HOME="/pnpm"
ENV PATH="$PNPM_HOME:$PATH"
RUN corepack enable
# --- Build Image ---
FROM base AS build
ENV NX_CLOUD_ACCESS_TOKEN=$NX_CLOUD_ACCESS_TOKEN
COPY .npmrc package.json pnpm-lock.yaml ./
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile
RUN npm ci && npm cache clean --force
COPY . .
RUN pnpm build
RUN npm run build
# --- Release Image ---
FROM base AS release
RUN apt update && apt install -y dumb-init --no-install-recommends
COPY --chown=node:node --from=build /app/dist ./dist
COPY --chown=node:node --from=build /app/.npmrc /app/package.json /app/pnpm-lock.yaml ./
RUN npm ci --production && npm cache clean --force
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --prod --frozen-lockfile
# Copy Build Output
COPY --chown=node:node --from=build /app/dist ./dist
# Copy Prisma Generated Client
COPY --chown=node:node --from=build /app/node_modules/.prisma ./node_modules/
COPY --chown=node:node --from=build /app/node_modules/.prisma/client ./node_modules/.prisma/client
# Copy Prisma Schema & Migrations
COPY --chown=node:node --from=build /app/tools/prisma ./tools/prisma
CMD [ "dumb-init", "pnpm", "start" ]
CMD [ "dumb-init", "node", "dist/apps/server/main" ]

34925
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

View File

@ -1,7 +1,7 @@
{
"name": "@reactive-resume/source",
"description": "A free and open-source resume builder that simplifies the process of creating, updating, and sharing your resume.",
"version": "4.0.0-alpha.0",
"version": "4.0.0-alpha.1",
"license": "MIT",
"private": true,
"author": {
@ -16,20 +16,17 @@
"scripts": {
"dev": "nx run-many -t serve",
"test": "nx run-many -t test",
"prebuild": "pnpm exec prisma generate",
"prebuild": "npx prisma generate",
"build": "nx run-many -t build",
"prestart": "pnpm dlx prisma migrate deploy",
"prestart": "npx prisma migrate deploy",
"start": "node dist/apps/server/main",
"lint": "nx run-many -t lint --fix",
"format": "pnpm dlx prettier -w .",
"prepare": "pnpm dlx husky install",
"messages:extract": "pnpm exec lingui extract --clean --overwrite --locale en-US"
"format": "npx prettier -w .",
"messages:extract": "npx lingui extract --clean --overwrite --locale en-US"
},
"devDependencies": {
"@babel/core": "^7.23.3",
"@babel/preset-react": "^7.23.3",
"@commitlint/cli": "^18.4.1",
"@commitlint/config-conventional": "^18.4.0",
"@lingui/cli": "^4.5.0",
"@lingui/conf": "^4.5.0",
"@lingui/swc-plugin": "^4.0.4",
@ -86,7 +83,6 @@
"@vitest/ui": "~0.34.6",
"autoprefixer": "^10.4.16",
"cypress": "^13.5.0",
"cz-conventional-changelog": "^3.3.0",
"eslint": "~8.53.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-cypress": "^2.15.1",
@ -99,7 +95,6 @@
"eslint-plugin-simple-import-sort": "^10.0.0",
"eslint-plugin-tailwindcss": "^3.13.0",
"eslint-plugin-unused-imports": "^3.0.0",
"husky": "^8.0.3",
"jest": "^29.7.0",
"jest-environment-node": "^29.7.0",
"jsdom": "~22.1.0",
@ -108,7 +103,7 @@
"postcss-import": "^15.1.0",
"postcss-nested": "^6.0.1",
"prettier": "^3.1.0",
"prisma": "^5.5.2",
"prisma": "^5.6.0",
"tailwindcss": "^3.3.5",
"tailwindcss-animate": "^1.0.7",
"ts-jest": "^29.1.1",
@ -143,7 +138,7 @@
"@paralleldrive/cuid2": "^2.2.2",
"@pdf-lib/fontkit": "^1.1.1",
"@phosphor-icons/react": "^2.0.14",
"@prisma/client": "^5.5.2",
"@prisma/client": "^5.6.0",
"@radix-ui/react-accordion": "^1.1.2",
"@radix-ui/react-alert-dialog": "^1.0.5",
"@radix-ui/react-aspect-ratio": "^1.0.3",
@ -167,7 +162,7 @@
"@radix-ui/react-toggle": "^1.0.3",
"@radix-ui/react-toggle-group": "^1.0.4",
"@radix-ui/react-tooltip": "^1.0.7",
"@sentry/node": "^7.80.0",
"@sentry/node": "^7.80.1",
"@songkeys/nestjs-redis": "^10.0.0",
"@songkeys/nestjs-redis-health": "^10.0.0",
"@swc/helpers": "~0.5.3",
@ -181,7 +176,6 @@
"@tiptap/starter-kit": "^2.1.12",
"@types/passport-jwt": "^3.0.13",
"async-retry": "^1.3.3",
"await-to-js": "^3.0.0",
"axios": "^1.6.1",
"axios-auth-refresh": "^3.3.6",
"bcryptjs": "^2.4.3",
@ -192,7 +186,7 @@
"dayjs": "^1.11.10",
"deepmerge": "^4.3.1",
"file-saver": "^2.0.5",
"framer-motion": "^10.16.4",
"framer-motion": "^10.16.5",
"helmet": "^7.1.0",
"immer": "^10.0.3",
"ioredis": "^5.3.2",
@ -243,16 +237,5 @@
},
"prisma": {
"schema": "tools/prisma/schema.prisma"
},
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
},
"commitlint": {
"extends": [
"@commitlint/config-conventional"
],
"rules": {}
}
}

20479
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,5 @@
generator client {
provider = "prisma-client-js"
output = "../../node_modules/.prisma/client"
}
datasource db {