Просмотр исходного кода

Add `dependsOn` for watch:esbuild script (#4026)

Chris Estreich 7 месяцев назад
Родитель
Сommit
057ac3e428
3 измененных файлов с 13 добавлено и 6 удалено
  1. 5 5
      .vscode/tasks.json
  2. 1 1
      src/package.json
  3. 7 0
      turbo.json

+ 5 - 5
.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,

+ 1 - 1
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"
 	},

+ 7 - 0
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
 		}
 	}
 }