Skip to content

fix(vscode): declare Pierre worker dependency for builds#10753

Open
lambertjosh wants to merge 1 commit into
mainfrom
savory-act
Open

fix(vscode): declare Pierre worker dependency for builds#10753
lambertjosh wants to merge 1 commit into
mainfrom
savory-act

Conversation

@lambertjosh
Copy link
Copy Markdown
Contributor

What changed

Declare @pierre/diffs directly in packages/kilo-vscode and update its Bun lockfile importer entry.

Why

PR #10730 added extension-owned direct consumers of Pierre's worker APIs: packages/kilo-vscode/esbuild.js now resolves @pierre/diffs/worker/worker.js for the bundled Shiki worker asset, and packages/kilo-vscode/webview-ui/pierre-worker.ts imports @pierre/diffs/worker. It did not add @pierre/diffs to the extension package dependencies.

Under Bun's isolated workspace installs, the extension cannot depend on @pierre/diffs being present only through sibling UI packages. A clean extension build therefore fails in the production esbuild path with:

Could not resolve "@pierre/diffs/worker/worker.js"

Declaring the dependency at the package that directly consumes it preserves the worker implementation and avoids relying on accidental hoisting or cross-workspace dependency visibility.

Release and CI context

The v7.3.18 pre-release workflow began before #10730 merged: its build-vscode job checked out 7bbac24c696403e658c78e7dfb494b0a5c9c5944, and the published VSIX artifacts do not contain the dist/shiki-worker.js asset introduced by that PR. This is therefore a correction for current main before an affected VSIX ships, rather than a shipped behavior change requiring release notes.

The regression passed PR checks because the VS Code checks exercise unit tests, linting, filtered typechecking, Knip, and Storybook visual builds, but do not execute the production extension node esbuild.js --production bundle path that creates the synthetic worker entry. This PR applies the minimal dependency ownership fix; adding production bundle coverage to PR CI should be handled as follow-up prevention work.

@kilo-code-bot
Copy link
Copy Markdown
Contributor

kilo-code-bot Bot commented May 30, 2026

Code Review Summary

Status: No Issues Found | Recommendation: Merge

Files Reviewed (2 files)
  • packages/kilo-vscode/package.json — adds @pierre/diffs: "catalog:" as a direct dependency
  • bun.lock — updates the kilo-vscode importer entry to include @pierre/diffs

Reviewed by claude-sonnet-4.6 · 409,798 tokens

Review guidance: REVIEW.md from base branch main

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant