Skip to content

fix: exclude dev tooling (.claude/, CLAUDE.md) and non-runtime files from extension package - #4019

Open
Mohit-Gaur75 wants to merge 1 commit into
prettier:mainfrom
Mohit-Gaur75:fix/exclude-dev-tooling-from-package
Open

Mohit-Gaur75 wants to merge 1 commit into
prettier:mainfrom
Mohit-Gaur75:fix/exclude-dev-tooling-from-package

Conversation

@Mohit-Gaur75

Copy link
Copy Markdown

Summary

Fixes #4011

When packaging the extension for distribution (e.g. via vsce package), internal developer tooling and non-runtime files were being bundled into the .vsix file and installed onto user machines:

This change updates .vscodeignore so that only runtime files needed by VS Code and the bundled Prettier dependency are packaged into the extension.

Changes

  • Added .claude/ and CLAUDE.md to .vscodeignore
  • Added .devcontainer/, docs/, legacy/, .tool-versions, .vscode-test.mjs, tsconfig.test.json, and zuplo.png to .vscodeignore
  • Updated sourcemap rule from dist/*.map to dist/**/*.map and added dist/web/test/ to avoid bundling test artifacts

Test plan

  • Tested with npx @vscode/vsce ls: confirmed that .claude/, CLAUDE.md, .devcontainer/, docs/, legacy/, .tool-versions, .vscode-test.mjs, tsconfig.test.json, zuplo.png, and dist/web/test/ are no longer included in the package list
  • Confirmed all necessary runtime files remain included (dist/extension.js, dist/web-extension.cjs, package.json, package.nls*.json, icon.png, README.md, CHANGELOG.md, LICENSE, THIRDPARTY.md, package-json-schema.json, and node_modules/prettier/**)
  • npm run compile succeeds
  • npm run lint passes with 0 errors

…extension package

- Add .claude/ and CLAUDE.md to .vscodeignore (fixes prettier#4011)

- Exclude internal/dev files from package (.devcontainer/, docs/, legacy/, .tool-versions, .vscode-test.mjs, tsconfig.test.json, zuplo.png)

- Exclude nested test artifacts and source maps (dist/**/*.map, dist/web/test/)
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.

.claude/ dev tooling (settings.json, CLAUDE.md, custom agents) is bundled into the published extension

1 participant