-
Notifications
You must be signed in to change notification settings - Fork 260
chore: Add support for turborepo #546
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -4,15 +4,10 @@ | |||||||||
| "packages/*" | ||||||||||
| ], | ||||||||||
| "scripts": { | ||||||||||
| "build": "cross-env SKIP_ENV_VALIDATION=1 yarn workspaces foreach -A run build", | ||||||||||
| "build": "turbo build", | ||||||||||
| "test": "yarn workspaces foreach -A run test", | ||||||||||
| "dev": "yarn dev:prisma:migrate:dev && npm-run-all --print-label --parallel dev:zoekt dev:backend dev:web watch:mcp watch:schemas", | ||||||||||
| "with-env": "cross-env PATH=\"$PWD/bin:$PATH\" dotenv -e .env.development -c --", | ||||||||||
| "dev:zoekt": "yarn with-env zoekt-webserver -index .sourcebot/index -rpc", | ||||||||||
| "dev:backend": "yarn with-env yarn workspace @sourcebot/backend dev:watch", | ||||||||||
| "dev:web": "yarn with-env yarn workspace @sourcebot/web dev", | ||||||||||
| "watch:mcp": "yarn workspace @sourcebot/mcp build:watch", | ||||||||||
| "watch:schemas": "yarn workspace @sourcebot/schemas watch", | ||||||||||
| "dev": "yarn with-env turbo dev zoekt:webserver", | ||||||||||
| "with-env": "cross-env PATH=\"$PROJECT_CWD/packages/zoekt/bin:$PATH\" dotenv -e .env.development -c --", | ||||||||||
|
Comment on lines
+9
to
+10
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fix the dev script Turborepo invocation. Same issue as above: - "dev": "yarn with-env turbo dev zoekt:webserver",
+ "dev": "yarn with-env turbo run dev zoekt:webserver",📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||
| "dev:prisma:migrate:dev": "yarn with-env yarn workspace @sourcebot/db prisma:migrate:dev", | ||||||||||
| "dev:prisma:generate": "yarn with-env yarn workspace @sourcebot/db prisma:generate", | ||||||||||
| "dev:prisma:studio": "yarn with-env yarn workspace @sourcebot/db prisma:studio", | ||||||||||
|
|
@@ -23,7 +18,8 @@ | |||||||||
| "devDependencies": { | ||||||||||
| "cross-env": "^7.0.3", | ||||||||||
| "dotenv-cli": "^8.0.0", | ||||||||||
| "npm-run-all": "^4.1.5" | ||||||||||
| "npm-run-all": "^4.1.5", | ||||||||||
| "turbo": "^2.5.8" | ||||||||||
| }, | ||||||||||
| "packageManager": "yarn@4.7.0", | ||||||||||
| "resolutions": { | ||||||||||
|
|
||||||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6,8 +6,7 @@ | |
| "types": "dist/index.d.ts", | ||
| "scripts": { | ||
| "build": "tsc", | ||
| "dev": "node ./dist/index.js", | ||
| "build:watch": "tsc-watch --preserveWatchOutput" | ||
| "dev": "tsc-watch --preserveWatchOutput" | ||
| }, | ||
|
Comment on lines
8
to
10
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Restore runtime execution in
🤖 Prompt for AI Agents |
||
| "devDependencies": { | ||
| "@types/express": "^5.0.1", | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| /bin |
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,8 @@ | ||||||||||
| { | ||||||||||
| "private": true, | ||||||||||
| "name": "zoekt", | ||||||||||
| "scripts": { | ||||||||||
| "build": "mkdir -p $PROJECT_CWD/packages/zoekt/bin/ && go build -C $PROJECT_CWD/vendor/zoekt -o $PROJECT_CWD/packages/zoekt/bin/ ./cmd/...", | ||||||||||
| "zoekt:webserver": "yarn build && ./bin/zoekt-webserver -index $PROJECT_CWD/.sourcebot/index -rpc" | ||||||||||
|
Comment on lines
+5
to
+6
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fix the Go build invocation.
Apply this diff to unblock the build: - "build": "mkdir -p $PROJECT_CWD/packages/zoekt/bin/ && go build -C $PROJECT_CWD/vendor/zoekt -o $PROJECT_CWD/packages/zoekt/bin/ ./cmd/...",
+ "build": "mkdir -p $PROJECT_CWD/packages/zoekt/bin/ && go build -C $PROJECT_CWD/vendor/zoekt -o $PROJECT_CWD/packages/zoekt/bin/zoekt-webserver ./cmd/zoekt-webserver",If other zoekt binaries are required, invoke 📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||
| } | ||||||||||
| } | ||||||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| { | ||
| "$schema": "https://turborepo.com/schema.json", | ||
| "ui": "tui", | ||
| "tasks": { | ||
| "build": { | ||
| "dependsOn": [ | ||
| "^build" | ||
| ], | ||
| "outputs": [ | ||
| ".next/**", | ||
| "!.next/cache/**", | ||
| "dist/**", | ||
| "bin/**" | ||
| ] | ||
| }, | ||
| "zoekt:webserver": { | ||
| "persistent": true, | ||
| "cache": false | ||
| }, | ||
| "dev": { | ||
| "persistent": true, | ||
| "cache": false | ||
| } | ||
| }, | ||
| "envMode": "loose" | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use the correct Turbo CLI form.
turbo buildis invalid; the CLI expectsturbo run <task>. As-is,yarn buildexits with “Unknown command: build.” Update the script to callturbo run build.📝 Committable suggestion
🤖 Prompt for AI Agents