fix: resolve worker path and build config issues

This commit is contained in:
hannesrudolph 2025-07-03 09:45:07 -06:00
parent 41d2b0f7ce
commit 5ac7befb67
4 changed files with 5 additions and 5 deletions

View file

@ -18,7 +18,7 @@
"devDependencies": {
"@roo-code/config-eslint": "workspace:^",
"@roo-code/config-typescript": "workspace:^",
"@types/node": "20.x",
"@types/node": "~20.17.57",
"vitest": "^3.2.3"
}
}

4
pnpm-lock.yaml generated
View file

@ -345,7 +345,7 @@ importers:
specifier: workspace:^
version: link:../config-typescript
'@types/node':
specifier: 20.x
specifier: ~20.17.57
version: 20.17.57
vitest:
specifier: ^3.2.3
@ -13295,7 +13295,7 @@ snapshots:
sirv: 3.0.1
tinyglobby: 0.2.14
tinyrainbow: 2.0.0
vitest: 3.2.4(@types/debug@4.1.12)(@types/node@22.15.29)(@vitest/ui@3.2.4)(jiti@2.4.2)(jsdom@26.1.0)(lightningcss@1.30.1)(tsx@4.19.4)(yaml@2.8.0)
vitest: 3.2.4(@types/debug@4.1.12)(@types/node@20.17.57)(@vitest/ui@3.2.4)(jiti@2.4.2)(jsdom@26.1.0)(lightningcss@1.30.1)(tsx@4.19.4)(yaml@2.8.0)
'@vitest/utils@3.2.4':
dependencies:

View file

@ -108,7 +108,7 @@ async function main() {
*/
const workerConfig = {
...buildOptions,
entryPoints: ["workers/countTokens.ts"],
entryPoints: ["workers/countTokens.ts", "workers/indexing-worker.ts"],
outdir: "dist/workers",
}

View file

@ -214,7 +214,7 @@ export class CodeIndexManager {
}
// Create new worker
const workerPath = path.join(__dirname, "../../workers/indexing-worker.js")
const workerPath = path.join(__dirname, "workers/indexing-worker.js")
this._worker = new Worker(workerPath)
this._workerReady = false