From 057ac3e42837101ea6b8ab13893e8ad65d322b9b Mon Sep 17 00:00:00 2001 From: Chris Estreich Date: Mon, 26 May 2025 22:00:39 -0700 Subject: [PATCH] Add `dependsOn` for watch:esbuild script (#4026) --- .vscode/tasks.json | 10 +++++----- src/package.json | 2 +- turbo.json | 7 +++++++ 3 files changed, 13 insertions(+), 6 deletions(-) diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 4236934f1a..549a1174a9 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -5,7 +5,7 @@ "tasks": [ { "label": "watch", - "dependsOn": ["webview", "watch:tsc", "watch:esbuild"], + "dependsOn": ["watch:webview", "watch:bundle", "watch:tsc"], "presentation": { "reveal": "never" }, @@ -15,7 +15,7 @@ } }, { - "label": "webview", + "label": "watch:webview", "type": "shell", "command": "pnpm --filter @roo-code/vscode-webview dev", "group": "build", @@ -37,9 +37,9 @@ } }, { - "label": "watch:esbuild", + "label": "watch:bundle", "type": "shell", - "command": "pnpm --filter roo-cline watch:esbuild", + "command": "npx turbo watch:bundle", "group": "build", "problemMatcher": { "owner": "esbuild", @@ -61,7 +61,7 @@ { "label": "watch:tsc", "type": "shell", - "command": "pnpm --filter roo-cline watch:tsc", + "command": "npx turbo watch:tsc", "group": "build", "problemMatcher": "$tsc-watch", "isBackground": true, diff --git a/src/package.json b/src/package.json index dba6499244..2ad46c4c13 100644 --- a/src/package.json +++ b/src/package.json @@ -327,7 +327,7 @@ "vscode:prepublish": "pnpm bundle --production", "vsix": "mkdirp ../bin && npx vsce package --no-dependencies --out ../bin", "publish:marketplace": "vsce publish --no-dependencies && ovsx publish --no-dependencies", - "watch:esbuild": "pnpm bundle --watch", + "watch:bundle": "pnpm bundle --watch", "watch:tsc": "tsc --noEmit --watch --project tsconfig.json", "clean": "rimraf README.md CHANGELOG.md LICENSE dist webview-ui out mock .turbo" }, diff --git a/turbo.json b/turbo.json index 55ef646fa6..ea05254302 100644 --- a/turbo.json +++ b/turbo.json @@ -30,6 +30,13 @@ "vsix:nightly": { "dependsOn": ["bundle:nightly", "@roo-code/vscode-webview#build:nightly"], "cache": false + }, + "watch:bundle": { + "dependsOn": ["@roo-code/build#build", "@roo-code/types#build"], + "cache": false + }, + "watch:tsc": { + "cache": false } } }