Skip to content

Fix vsce packaging under pnpm and exclude dev-only files - #39

Merged
david-yz-liu merged 1 commit into
mainfrom
fix/vsce-packaging
Nov 7, 2026
Merged

david-yz-liu merged 1 commit into
mainfrom
fix/vsce-packaging

Conversation

@david-yz-liu

Copy link
Copy Markdown
Contributor

Summary

  • vsce-package script: add --no-dependencies. Without it, vsce package runs npm list --production, which fails with ELSPROBLEMS on pnpm's node_modules layout, so pnpm run vsce-package didn't work. Runtime dependencies are already bundled into dist/extension.js by webpack, so vsce doesn't need to collect them.
  • .vscodeignore: exclude development-only files that were being shipped in the .vsix: .claude/, .mypy_cache/, scripts/, eslint.config.js, pnpm-lock.yaml, pnpm-workspace.yaml, pyproject.toml, uv.lock and .python-version. The language server's pyproject.toml lookup reads the user's workspace root, not the extension's own copy, so excluding it is safe.
  • Added CHANGELOG entries under "Internal changes".

Test plan

  • pnpm run vsce-package succeeds (python-ta.vsix, 2891 files, 18.69 MB)
  • vsce ls --no-dependencies outside bundled/libs/ lists only dist/, bundled/tool/, README.md, CHANGELOG.md, LICENSE and package.json
  • Install the built .vsix and confirm the extension activates and reports diagnostics

🤖 Generated with Claude Code

Pass --no-dependencies to `vsce package`: vsce otherwise runs
`npm list`, which fails on pnpm's node_modules layout, and runtime
dependencies are already bundled into dist/extension.js by webpack.

Extend .vscodeignore so the .vsix no longer ships local and dev-only
files (.claude/, .mypy_cache/, scripts/, lockfiles, eslint config,
pyproject.toml, .python-version).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coveralls

coveralls commented Nov 7, 2026 •

Copy link
Copy Markdown

Coverage Report for CI Build 42407535797

Warning

Build has drifted: This PR's base is out of sync with its target branch, so coverage data may include unrelated changes.
Quick fix: rebase this PR. Learn more →

Coverage decreased (-0.4%) to 65.257%

Details

  • Coverage decreased (-0.4%) from the base build.
  • Patch coverage: No coverable lines changed in this PR.
  • 4 coverage regressions across 2 files.

Uncovered Changes

No uncovered changes found.

Coverage Regressions

4 previously-covered lines in 2 files lost coverage.

File Lines Losing Coverage Coverage
src/common/server.ts 2 90.85%
src/common/log/logging.ts 2 88.24%

Coverage Stats

Coverage Status
Relevant Lines: 1309
Covered Lines: 851
Line Coverage: 65.01%
Relevant Branches: 110
Covered Branches: 75
Branch Coverage: 68.18%
Branches in Coverage %: Yes
Coverage Strength: 3.38 hits per line

💛 - Coveralls

@david-yz-liu
david-yz-liu merged commit f2da8d4 into main Nov 7, 2026
11 checks passed
@david-yz-liu
david-yz-liu deleted the fix/vsce-packaging branch November 7, 2026 19:56
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.

2 participants