Skip to content

Commit 057ac3e

Browse files
authored
Add dependsOn for watch:esbuild script (#4026)
1 parent b7d1c9a commit 057ac3e

File tree

3 files changed

+13
-6
lines changed

3 files changed

+13
-6
lines changed

.vscode/tasks.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"tasks": [
66
{
77
"label": "watch",
8-
"dependsOn": ["webview", "watch:tsc", "watch:esbuild"],
8+
"dependsOn": ["watch:webview", "watch:bundle", "watch:tsc"],
99
"presentation": {
1010
"reveal": "never"
1111
},
@@ -15,7 +15,7 @@
1515
}
1616
},
1717
{
18-
"label": "webview",
18+
"label": "watch:webview",
1919
"type": "shell",
2020
"command": "pnpm --filter @roo-code/vscode-webview dev",
2121
"group": "build",
@@ -37,9 +37,9 @@
3737
}
3838
},
3939
{
40-
"label": "watch:esbuild",
40+
"label": "watch:bundle",
4141
"type": "shell",
42-
"command": "pnpm --filter roo-cline watch:esbuild",
42+
"command": "npx turbo watch:bundle",
4343
"group": "build",
4444
"problemMatcher": {
4545
"owner": "esbuild",
@@ -61,7 +61,7 @@
6161
{
6262
"label": "watch:tsc",
6363
"type": "shell",
64-
"command": "pnpm --filter roo-cline watch:tsc",
64+
"command": "npx turbo watch:tsc",
6565
"group": "build",
6666
"problemMatcher": "$tsc-watch",
6767
"isBackground": true,

src/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@
327327
"vscode:prepublish": "pnpm bundle --production",
328328
"vsix": "mkdirp ../bin && npx vsce package --no-dependencies --out ../bin",
329329
"publish:marketplace": "vsce publish --no-dependencies && ovsx publish --no-dependencies",
330-
"watch:esbuild": "pnpm bundle --watch",
330+
"watch:bundle": "pnpm bundle --watch",
331331
"watch:tsc": "tsc --noEmit --watch --project tsconfig.json",
332332
"clean": "rimraf README.md CHANGELOG.md LICENSE dist webview-ui out mock .turbo"
333333
},

turbo.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,13 @@
3030
"vsix:nightly": {
3131
"dependsOn": ["bundle:nightly", "@roo-code/vscode-webview#build:nightly"],
3232
"cache": false
33+
},
34+
"watch:bundle": {
35+
"dependsOn": ["@roo-code/build#build", "@roo-code/types#build"],
36+
"cache": false
37+
},
38+
"watch:tsc": {
39+
"cache": false
3340
}
3441
}
3542
}

0 commit comments

Comments
 (0)