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

- 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:
2026-03-04 18:19:52 +01:00
parent 493ddd7e78
commit 2565e6c28b
5 changed files with 1441 additions and 3849 deletions

View File

@@ -14,6 +14,9 @@ COPY packages/backend/package.json ./packages/backend/package.json
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
RUN pnpm --filter @sexy.pivoine.art/backend build

View File

@@ -20,6 +20,7 @@
"packageManager": "pnpm@10.19.0",
"pnpm": {
"onlyBuiltDependencies": [
"argon2",
"es5-ext",
"esbuild",
"svelte-preprocess",

View File

@@ -34,11 +34,6 @@
"slugify": "^1.6.6",
"uuid": "^11.1.0"
},
"pnpm": {
"onlyBuiltDependencies": [
"argon2"
]
},
"devDependencies": {
"@types/fluent-ffmpeg": "^2.1.27",
"@types/nodemailer": "^6.4.17",

5280
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

View File

@@ -5,4 +5,5 @@ ignoredBuiltDependencies:
- "@tailwindcss/oxide"
onlyBuiltDependencies:
- argon2
- svelte-preprocess