From 2b9068560d75d84d8f1ff84577e9e0f1f17d9335 Mon Sep 17 00:00:00 2001 From: einhornimmond Date: Fri, 28 Nov 2025 19:00:31 +0100 Subject: [PATCH] move main seed into database --- backend/turbo.json | 6 +----- database/package.json | 1 + database/turbo.json | 4 ++++ 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/backend/turbo.json b/backend/turbo.json index 399bfa6ba..9ba2f9dad 100644 --- a/backend/turbo.json +++ b/backend/turbo.json @@ -1,10 +1,6 @@ { "extends": ["//"], - "tasks": { - "seed": { - "dependsOn": ["database#up", "^build"], - "cache": false - }, + "tasks": { "locales": {}, "locales:fix": {}, "lint": { diff --git a/database/package.json b/database/package.json index b22f9d95f..906e8682e 100644 --- a/database/package.json +++ b/database/package.json @@ -25,6 +25,7 @@ "up": "cross-env TZ=UTC tsx migration/index.ts up", "down": "cross-env TZ=UTC tsx migration/index.ts down", "reset": "cross-env TZ=UTC tsx migration/index.ts reset", + "seed": "cross-env TZ=UTC NODE_ENV=development bun src/seeds/index.ts", "up:test": "cross-env TZ=UTC DB_DATABASE=gradido_test tsx migration/index.ts up", "up:backend_test": "cross-env TZ=UTC DB_DATABASE=gradido_test_backend tsx migration/index.ts up", "up:federation_test": "cross-env TZ=UTC DB_DATABASE=gradido_test_federation tsx migration/index.ts up", diff --git a/database/turbo.json b/database/turbo.json index a40c23229..7017e8542 100644 --- a/database/turbo.json +++ b/database/turbo.json @@ -1,6 +1,10 @@ { "extends": ["//"], "tasks": { + "seed": { + "dependsOn": ["database#up", "^build"], + "cache": false + }, "clear": { "cache": false },