From 5c52a98ba8ac65b5971418333e24a6b3862c97a6 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 0b208a7..fd27699 100644 --- a/Dockerfile +++ b/Dockerfile @@ -34,4 +34,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 fa8ba16..df6459c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -15,13 +15,13 @@ "fastify": "^5.8.5", "graphql": "^16.14.1", "mercurius": "^16.9.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" } }, @@ -62,7 +62,6 @@ "cpu": [ "ppc64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -79,7 +78,6 @@ "cpu": [ "arm" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -96,7 +94,6 @@ "cpu": [ "arm64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -113,7 +110,6 @@ "cpu": [ "x64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -130,7 +126,6 @@ "cpu": [ "arm64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -147,7 +142,6 @@ "cpu": [ "x64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -164,7 +158,6 @@ "cpu": [ "arm64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -181,7 +174,6 @@ "cpu": [ "x64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -198,7 +190,6 @@ "cpu": [ "arm" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -215,7 +206,6 @@ "cpu": [ "arm64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -232,7 +222,6 @@ "cpu": [ "ia32" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -249,7 +238,6 @@ "cpu": [ "loong64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -266,7 +254,6 @@ "cpu": [ "mips64el" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -283,7 +270,6 @@ "cpu": [ "ppc64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -300,7 +286,6 @@ "cpu": [ "riscv64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -317,7 +302,6 @@ "cpu": [ "s390x" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -334,7 +318,6 @@ "cpu": [ "x64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -351,7 +334,6 @@ "cpu": [ "arm64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -368,7 +350,6 @@ "cpu": [ "x64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -385,7 +366,6 @@ "cpu": [ "arm64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -402,7 +382,6 @@ "cpu": [ "x64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -419,7 +398,6 @@ "cpu": [ "arm64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -436,7 +414,6 @@ "cpu": [ "x64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -453,7 +430,6 @@ "cpu": [ "arm64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -470,7 +446,6 @@ "cpu": [ "ia32" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -487,7 +462,6 @@ "cpu": [ "x64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -1824,7 +1798,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": { @@ -2080,7 +2053,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, @@ -3404,7 +3376,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 7c906b0..fc1c1b6 100644 --- a/package.json +++ b/package.json @@ -17,13 +17,13 @@ "fastify": "^5.8.5", "graphql": "^16.14.1", "mercurius": "^16.9.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 fc6a25d..87f5777 100644 --- a/scripts/seed-demo.ts +++ b/scripts/seed-demo.ts @@ -1,5 +1,5 @@ import { Prisma } from '@prisma/client' -import { prisma } from '../src/db.js' +import { prisma } from '../dist/db.js' const DEMO_TEAM_UUID = process.env.DEMO_TEAM_UUID ?? '11111111-1111-4111-8111-111111111111'