Exclude compiled unit tests (dist/__test__) from the VSIX

Aperta
#197 0 commenti 0 reazioni 1 assegnatario Vedi su GitHub

@raleigh-g-thompson ci sta già lavorando.

Dal 7/11/2026.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

code cleanup

Summary

The published VSIX includes the compiled unit tests. .vscodeignore excludes dist/test, but tsc compiles src/__test__/ to dist/__test__/, so that rule doesn't match and the tests ship with the extension.

Evidence

  • The published v0.9.8 from the Marketplace contains 84 files under extension/dist/__test__/ (about 470 KB uncompressed).
  • A v1.0.0 build from npm run package contains 90 files under extension/dist/__test__/.

To check any build:

unzip -l cql-<version>.vsix | grep -c 'dist/__test__'

Proposed fix

  1. Add dist/__test__/ to .vscodeignore, the Marketplace build's ignore file.
  2. Add it to .vscodeignore.local as well, the offline build's ignore file.
  3. Optionally remove the stale dist/test entry, if nothing compiles there any more.

Verification

  • npx @vscode/vsce ls | grep __test__ prints nothing.
  • npm run package produces a VSIX with no dist/__test__/ entries.
  • npm test still passes, because the tests run from the working tree, not from the VSIX.
Lingua principale
TypeScript
Stelle
14
Fork
8
Merge medio
1g 22h
PR unite (30g)
1

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di cqframework/vscode-cql

Tutte le issue di cqframework/vscode-cql

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.