From 572eb15017ddaf3e4ae565440eca4d774616bd7f Mon Sep 17 00:00:00 2001 From: Ruslan Bakiev <572431+veikab@users.noreply.github.com> Date: Sun, 7 Jun 2026 11:09:55 +0700 Subject: [PATCH] Fix demo seed runtime --- Dockerfile | 2 +- package-lock.json | 33 ++------------------------------- package.json | 4 ++-- scripts/seed-demo.ts | 2 +- 4 files changed, 6 insertions(+), 35 deletions(-) diff --git a/Dockerfile b/Dockerfile index f34cac0..9f20185 100644 --- a/Dockerfile +++ b/Dockerfile @@ -35,4 +35,4 @@ COPY scripts ./scripts EXPOSE 8000 -CMD ["sh", "-c", ". /app/scripts/load-vault-env.sh && set +e && npx prisma migrate resolve --applied 0_init 2>/dev/null; set -e && npx prisma migrate deploy && node dist/index.js"] +CMD ["sh", "-c", ". /app/scripts/load-vault-env.sh && npx prisma migrate deploy && node dist/index.js"] diff --git a/package-lock.json b/package-lock.json index 832f5bb..0890b47 100644 --- a/package-lock.json +++ b/package-lock.json @@ -18,13 +18,13 @@ "jose": "^6.2.3", "mercurius": "^16.9.0", "mongodb": "^7.2.0", - "pg": "^8.21.0" + "pg": "^8.21.0", + "tsx": "^4.22.4" }, "devDependencies": { "@types/node": "^25.9.2", "@types/pg": "^8.20.0", "prisma": "^7.8.0", - "tsx": "^4.22.4", "typescript": "^6.0.3" } }, @@ -65,7 +65,6 @@ "cpu": [ "ppc64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -82,7 +81,6 @@ "cpu": [ "arm" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -99,7 +97,6 @@ "cpu": [ "arm64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -116,7 +113,6 @@ "cpu": [ "x64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -133,7 +129,6 @@ "cpu": [ "arm64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -150,7 +145,6 @@ "cpu": [ "x64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -167,7 +161,6 @@ "cpu": [ "arm64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -184,7 +177,6 @@ "cpu": [ "x64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -201,7 +193,6 @@ "cpu": [ "arm" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -218,7 +209,6 @@ "cpu": [ "arm64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -235,7 +225,6 @@ "cpu": [ "ia32" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -252,7 +241,6 @@ "cpu": [ "loong64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -269,7 +257,6 @@ "cpu": [ "mips64el" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -286,7 +273,6 @@ "cpu": [ "ppc64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -303,7 +289,6 @@ "cpu": [ "riscv64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -320,7 +305,6 @@ "cpu": [ "s390x" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -337,7 +321,6 @@ "cpu": [ "x64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -354,7 +337,6 @@ "cpu": [ "arm64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -371,7 +353,6 @@ "cpu": [ "x64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -388,7 +369,6 @@ "cpu": [ "arm64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -405,7 +385,6 @@ "cpu": [ "x64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -422,7 +401,6 @@ "cpu": [ "arm64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -439,7 +417,6 @@ "cpu": [ "x64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -456,7 +433,6 @@ "cpu": [ "arm64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -473,7 +449,6 @@ "cpu": [ "ia32" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -490,7 +465,6 @@ "cpu": [ "x64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -1851,7 +1825,6 @@ "version": "0.28.0", "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.28.0.tgz", "integrity": "sha512-sNR9MHpXSUV/XB4zmsFKN+QgVG82Cc7+/aaxJ8Adi8hyOac+EXptIp45QBPaVyX3N70664wRbTcLTOemCAnyqw==", - "dev": true, "hasInstallScript": true, "license": "MIT", "bin": { @@ -2107,7 +2080,6 @@ "version": "2.3.3", "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", - "dev": true, "hasInstallScript": true, "license": "MIT", "optional": true, @@ -3565,7 +3537,6 @@ "version": "4.22.4", "resolved": "https://registry.npmjs.org/tsx/-/tsx-4.22.4.tgz", "integrity": "sha512-X8EX+XV4QR5xCsrgxaED954zTDfY8KqlDtskKEL0cHhyS/P8b4IFOvGDQpsC9Q1XnLq915wEfwwY/zzskCtmhg==", - "dev": true, "license": "MIT", "dependencies": { "esbuild": "~0.28.0" diff --git a/package.json b/package.json index c4679a0..62957ef 100644 --- a/package.json +++ b/package.json @@ -20,13 +20,13 @@ "jose": "^6.2.3", "mercurius": "^16.9.0", "mongodb": "^7.2.0", - "pg": "^8.21.0" + "pg": "^8.21.0", + "tsx": "^4.22.4" }, "devDependencies": { "@types/node": "^25.9.2", "@types/pg": "^8.20.0", "prisma": "^7.8.0", - "tsx": "^4.22.4", "typescript": "^6.0.3" } } diff --git a/scripts/seed-demo.ts b/scripts/seed-demo.ts index f544943..b50e003 100644 --- a/scripts/seed-demo.ts +++ b/scripts/seed-demo.ts @@ -1,4 +1,4 @@ -import { prisma } from '../src/db.js' +import { prisma } from '../dist/db.js' function requiredEnv(name: string): string { const value = process.env[name]?.trim()