Skip to content

Commit 627bd18

Browse files
authored
ENG-808 Repair turbo dev (#392)
* 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.
1 parent 3e17556 commit 627bd18

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

apps/website/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
"check-types": "tsc --noEmit --skipLibCheck"
1414
},
1515
"dependencies": {
16-
"@repo/types": "*",
1716
"@repo/ui": "*",
17+
"@repo/database": "*",
1818
"@sindresorhus/slugify": "^2.2.1",
1919
"@supabase/ssr": "^0.6.1",
2020
"gray-matter": "^4.0.3",
@@ -31,9 +31,9 @@
3131
"zod": "^3.24.1"
3232
},
3333
"devDependencies": {
34-
"@repo/database": "*",
3534
"@repo/eslint-config": "*",
3635
"@repo/tailwind-config": "*",
36+
"@repo/types": "*",
3737
"@repo/typescript-config": "*",
3838
"@tailwindcss/typography": "^0.5.15",
3939
"@types/node": "^20",

packages/database/scripts/dev.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ const projectRoot = join(__dirname, "..");
77

88
if (process.env.HOME !== "/vercel") {
99
try {
10-
execSync("npm run compile", { cwd: projectRoot, stdio: "inherit" });
1110
if (getVariant() === "none") {
1211
console.log("Not using the database");
1312
process.exit(0);

turbo.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@
5959
"passThroughEnv": ["OBSIDIAN_PLUGIN_PATH"],
6060
"cache": false,
6161
"persistent": true,
62-
"inputs": ["$TURBO_DEFAULT$", ".env*"]
62+
"inputs": ["$TURBO_DEFAULT$", ".env*"],
63+
"dependsOn": ["^build"]
6364
},
6465
"deploy": {
6566
"cache": false,

0 commit comments

Comments
 (0)