From 7a5cc9f028e133ce7870f1a724c79b6ac2f7af3a Mon Sep 17 00:00:00 2001 From: barsa Date: Thu, 11 Dec 2025 10:58:00 +0900 Subject: [PATCH] Update @types/node dependency to 24.10.3 and adjust Docker entrypoint scripts for Prisma commands - Updated the @types/node dependency in package.json and pnpm-lock.yaml to version 24.10.3 for improved type definitions. - Modified Docker entrypoint scripts to use `pnpm dlx` for Prisma commands, ensuring consistency in package management. - Updated SHA256 checksums for the latest backend and frontend tarballs to reflect recent changes. --- apps/bff/scripts/docker-entrypoint.sh | 4 ++-- docs/guides/docker-prisma.md | 4 ++-- package.json | 2 +- pnpm-lock.yaml | 11 +++++++++-- portal-backend.latest.tar.gz.sha256 | 2 +- portal-frontend.latest.tar.gz.sha256 | 2 +- 6 files changed, 16 insertions(+), 9 deletions(-) diff --git a/apps/bff/scripts/docker-entrypoint.sh b/apps/bff/scripts/docker-entrypoint.sh index 4a1d7f20..17900f41 100755 --- a/apps/bff/scripts/docker-entrypoint.sh +++ b/apps/bff/scripts/docker-entrypoint.sh @@ -88,8 +88,8 @@ fi # ============================================================================= if [ "$RUN_MIGRATIONS" = "true" ] && [ -n "$DATABASE_URL" ]; then echo "🗄️ Running database migrations..." - - if npx prisma@"${PRISMA_VERSION}" migrate deploy --schema=/app/prisma/schema.prisma; then + + if pnpm dlx prisma@"${PRISMA_VERSION}" migrate deploy --schema=/app/prisma/schema.prisma; then echo "✅ Migrations complete" else echo "⚠️ Migration failed - check database connectivity" diff --git a/docs/guides/docker-prisma.md b/docs/guides/docker-prisma.md index d4be4968..abc57b39 100644 --- a/docs/guides/docker-prisma.md +++ b/docs/guides/docker-prisma.md @@ -53,7 +53,7 @@ Regenerate the Prisma client **from the production directory layout** before cre ```dockerfile # After pnpm deploy creates the bundle at /app (final layout) WORKDIR /app -RUN npx prisma@${PRISMA_VERSION} generate --schema=prisma/schema.prisma +RUN pnpm dlx prisma@${PRISMA_VERSION} generate --schema=prisma/schema.prisma ``` This regenerates the client with: @@ -69,7 +69,7 @@ Add comments in Dockerfile and schema.prisma explaining why regeneration is need ### 2. Version Lock Prisma Use explicit version in Docker: ```dockerfile -RUN npx prisma@${PRISMA_VERSION} generate --schema=prisma/schema.prisma +RUN pnpm dlx prisma@${PRISMA_VERSION} generate --schema=prisma/schema.prisma ``` ### 3. Match Prisma Versions diff --git a/package.json b/package.json index c90035e1..41aae612 100644 --- a/package.json +++ b/package.json @@ -51,7 +51,7 @@ "devDependencies": { "@eslint/eslintrc": "^3.3.3", "@eslint/js": "^9.39.1", - "@types/node": "^24.10.2", + "@types/node": "^24.10.3", "eslint": "^9.39.1", "eslint-config-next": "16.0.8", "eslint-plugin-prettier": "^5.5.4", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 606d80f0..308a86b6 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -20,8 +20,8 @@ importers: specifier: ^9.39.1 version: 9.39.1 '@types/node': - specifier: ^24.10.2 - version: 24.10.2 + specifier: ^24.10.3 + version: 24.10.3 eslint: specifier: ^9.39.1 version: 9.39.1(jiti@2.6.1) @@ -2012,6 +2012,9 @@ packages: '@types/node@24.10.2': resolution: {integrity: sha512-WOhQTZ4G8xZ1tjJTvKOpyEVSGgOTvJAfDK3FNFgELyaTpzhdgHVHeqW8V+UJvzF5BT+/B54T/1S2K6gd9c7bbA==} + '@types/node@24.10.3': + resolution: {integrity: sha512-gqkrWUsS8hcm0r44yn7/xZeV1ERva/nLgrLxFRUGb7aoNMIJfZJ3AC261zDQuOAKC7MiXai1WCpYc48jAHoShQ==} + '@types/passport-jwt@4.0.1': resolution: {integrity: sha512-Y0Ykz6nWP4jpxgEUYq8NoVZeCQPo1ZndJLfapI249g1jHChvRfZRO/LS3tqu26YgAS/laI1qx98sYGz0IalRXQ==} @@ -7620,6 +7623,10 @@ snapshots: dependencies: undici-types: 7.16.0 + '@types/node@24.10.3': + dependencies: + undici-types: 7.16.0 + '@types/passport-jwt@4.0.1': dependencies: '@types/jsonwebtoken': 9.0.10 diff --git a/portal-backend.latest.tar.gz.sha256 b/portal-backend.latest.tar.gz.sha256 index 8c22bc14..6a9f2b06 100644 --- a/portal-backend.latest.tar.gz.sha256 +++ b/portal-backend.latest.tar.gz.sha256 @@ -1 +1 @@ -8b34bdb6417b9d5edd0cd2e37e6ab96c591bc47bfb0c1f8c0a89e2a970424792 /home/barsa/projects/customer_portal/customer-portal/portal-backend.latest.tar.gz +53a3fba0f80abe58f8d3c0cde37b99027ce93f03486b4124c0664c7d53233921 /home/barsa/projects/customer_portal/customer-portal/portal-backend.latest.tar.gz diff --git a/portal-frontend.latest.tar.gz.sha256 b/portal-frontend.latest.tar.gz.sha256 index 4d7d6453..128667fc 100644 --- a/portal-frontend.latest.tar.gz.sha256 +++ b/portal-frontend.latest.tar.gz.sha256 @@ -1 +1 @@ -8b35fd94746b155255781dd7567a8d1feb4cc45e19b7ad558ce3f988b268b874 /home/barsa/projects/customer_portal/customer-portal/portal-frontend.latest.tar.gz +85dcbdfe8c81740c1d5d6d2bc09a81a92148f1f79c1a6ee5dcc8baf85e57be32 /home/barsa/projects/customer_portal/customer-portal/portal-frontend.latest.tar.gz