diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 4236934f1a..82682cdf56 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -5,7 +5,7 @@ "tasks": [ { "label": "watch", - "dependsOn": ["webview", "watch:tsc", "watch:esbuild"], + "dependsOn": ["webview", "watch:tsc", "watch:esbuild", "watch:roo-code-types"], "presentation": { "reveal": "never" }, @@ -69,6 +69,28 @@ "group": "watch", "reveal": "always" } + }, + { + "label": "watch:roo-code-types", + "type": "shell", + "command": "pnpm --filter @roo-code/types watch", + "group": "build", + "problemMatcher": { + "owner": "tsup", + "pattern": { + "regexp": "^$" + }, + "background": { + "activeOnStart": true, + "beginsPattern": ".*Build start.*", + "endsPattern": ".*Build success.*|.*Build failed.*" + } + }, + "isBackground": true, + "presentation": { + "group": "watch", + "reveal": "always" + } } ] } diff --git a/packages/types/package.json b/packages/types/package.json index 3cacff9f61..521bacc23a 100644 --- a/packages/types/package.json +++ b/packages/types/package.json @@ -22,6 +22,7 @@ "check-types": "tsc --noEmit", "test": "vitest --globals --run", "build": "tsup", + "watch": "tsup --watch", "clean": "rimraf dist .turbo" }, "dependencies": {