From f28c6ffce250246ea1bb85730c8c7192541e0a25 Mon Sep 17 00:00:00 2001 From: Marc-Antoine Parent Date: Fri, 29 Aug 2025 09:02:43 -0400 Subject: [PATCH 1/3] On an empty repo, `turbo dev` fails because `turbo dev -F @repo/database` expects `@repo/utils` to be built. Adding the turbo dependencies to that effect. Also making the database a non-dev dependency of website. --- apps/website/package.json | 4 ++-- packages/database/scripts/dev.ts | 1 - turbo.json | 7 ++++++- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/apps/website/package.json b/apps/website/package.json index 373da7166..10f79c83a 100644 --- a/apps/website/package.json +++ b/apps/website/package.json @@ -13,8 +13,8 @@ "check-types": "tsc --noEmit --skipLibCheck" }, "dependencies": { - "@repo/types": "*", "@repo/ui": "*", + "@repo/database": "*", "@sindresorhus/slugify": "^2.2.1", "@supabase/ssr": "^0.6.1", "gray-matter": "^4.0.3", @@ -31,9 +31,9 @@ "zod": "^3.24.1" }, "devDependencies": { - "@repo/database": "*", "@repo/eslint-config": "*", "@repo/tailwind-config": "*", + "@repo/types": "*", "@repo/typescript-config": "*", "@tailwindcss/typography": "^0.5.15", "@types/node": "^20", diff --git a/packages/database/scripts/dev.ts b/packages/database/scripts/dev.ts index ed8fbf284..1adb18599 100644 --- a/packages/database/scripts/dev.ts +++ b/packages/database/scripts/dev.ts @@ -7,7 +7,6 @@ const projectRoot = join(__dirname, ".."); if (process.env.HOME !== "/vercel") { try { - execSync("npm run compile", { cwd: projectRoot, stdio: "inherit" }); if (getVariant() === "none") { console.log("Not using the database"); process.exit(0); diff --git a/turbo.json b/turbo.json index f5bae9e4c..4e9f7850c 100644 --- a/turbo.json +++ b/turbo.json @@ -59,7 +59,12 @@ "passThroughEnv": ["OBSIDIAN_PLUGIN_PATH"], "cache": false, "persistent": true, - "inputs": ["$TURBO_DEFAULT$", ".env*"] + "inputs": ["$TURBO_DEFAULT$", ".env*"], + "dependsOn": [ + "@repo/database#build", + "@repo/ui#build", + "@repo/database#build" + ] }, "deploy": { "cache": false, From 2e7bf8944e6c82509e708abca45f9843f3cfaff1 Mon Sep 17 00:00:00 2001 From: Marc-Antoine Parent Date: Sat, 30 Aug 2025 13:08:22 -0400 Subject: [PATCH 2/3] typo: rebuild utils, not ui --- turbo.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/turbo.json b/turbo.json index 4e9f7850c..456913cb3 100644 --- a/turbo.json +++ b/turbo.json @@ -61,7 +61,7 @@ "persistent": true, "inputs": ["$TURBO_DEFAULT$", ".env*"], "dependsOn": [ - "@repo/database#build", + "@repo/utils#build", "@repo/ui#build", "@repo/database#build" ] From a205ec65c998dc743206d32a20eb9e59959f3295 Mon Sep 17 00:00:00 2001 From: Marc-Antoine Parent Date: Sat, 30 Aug 2025 13:17:07 -0400 Subject: [PATCH 3/3] use recursive build --- turbo.json | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/turbo.json b/turbo.json index 456913cb3..2c84ba03a 100644 --- a/turbo.json +++ b/turbo.json @@ -60,11 +60,7 @@ "cache": false, "persistent": true, "inputs": ["$TURBO_DEFAULT$", ".env*"], - "dependsOn": [ - "@repo/utils#build", - "@repo/ui#build", - "@repo/database#build" - ] + "dependsOn": ["^build"] }, "deploy": { "cache": false,