fix: resolve pnpm frozen-lockfile error and argon2 native build
All checks were successful
Build and Push Docker Image to Gitea / build-and-push (push) Successful in 5m19s
All checks were successful
Build and Push Docker Image to Gitea / build-and-push (push) Successful in 5m19s
- Run pnpm install to update lockfile with packages/backend dependencies - Add argon2 to root onlyBuiltDependencies (pnpm-workspace.yaml + package.json) - Add explicit `pnpm rebuild argon2` in Dockerfile.backend to ensure native bindings compile regardless of pnpm v10 build approval state - Remove pnpm.onlyBuiltDependencies from packages/backend/package.json (ineffective in workspace packages, warned by pnpm) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -14,6 +14,9 @@ COPY packages/backend/package.json ./packages/backend/package.json
|
|||||||
|
|
||||||
RUN pnpm install --frozen-lockfile --filter @sexy.pivoine.art/backend
|
RUN pnpm install --frozen-lockfile --filter @sexy.pivoine.art/backend
|
||||||
|
|
||||||
|
# Rebuild argon2 native bindings (pnpm v10 build approval bypassed explicitly)
|
||||||
|
RUN pnpm rebuild argon2
|
||||||
|
|
||||||
COPY packages/backend ./packages/backend
|
COPY packages/backend ./packages/backend
|
||||||
|
|
||||||
RUN pnpm --filter @sexy.pivoine.art/backend build
|
RUN pnpm --filter @sexy.pivoine.art/backend build
|
||||||
|
|||||||
@@ -20,6 +20,7 @@
|
|||||||
"packageManager": "pnpm@10.19.0",
|
"packageManager": "pnpm@10.19.0",
|
||||||
"pnpm": {
|
"pnpm": {
|
||||||
"onlyBuiltDependencies": [
|
"onlyBuiltDependencies": [
|
||||||
|
"argon2",
|
||||||
"es5-ext",
|
"es5-ext",
|
||||||
"esbuild",
|
"esbuild",
|
||||||
"svelte-preprocess",
|
"svelte-preprocess",
|
||||||
|
|||||||
@@ -34,11 +34,6 @@
|
|||||||
"slugify": "^1.6.6",
|
"slugify": "^1.6.6",
|
||||||
"uuid": "^11.1.0"
|
"uuid": "^11.1.0"
|
||||||
},
|
},
|
||||||
"pnpm": {
|
|
||||||
"onlyBuiltDependencies": [
|
|
||||||
"argon2"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/fluent-ffmpeg": "^2.1.27",
|
"@types/fluent-ffmpeg": "^2.1.27",
|
||||||
"@types/nodemailer": "^6.4.17",
|
"@types/nodemailer": "^6.4.17",
|
||||||
|
|||||||
5280
pnpm-lock.yaml
generated
5280
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@@ -5,4 +5,5 @@ ignoredBuiltDependencies:
|
|||||||
- "@tailwindcss/oxide"
|
- "@tailwindcss/oxide"
|
||||||
|
|
||||||
onlyBuiltDependencies:
|
onlyBuiltDependencies:
|
||||||
|
- argon2
|
||||||
- svelte-preprocess
|
- svelte-preprocess
|
||||||
|
|||||||
Reference in New Issue
Block a user