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.
This commit is contained in:
parent
718dbfcf1b
commit
7a5cc9f028
@ -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"
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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",
|
||||
|
||||
11
pnpm-lock.yaml
generated
11
pnpm-lock.yaml
generated
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user