Repository navigation
Conversation
The package files list keeps src/ for source maps and excludes the test folders under it, so the tarball carries no test entries and the same dist/ files.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
@traceai/fi-corestops shipping its test files in the npm package. The packagefileslist keepssrc/(the source maps point into it) and excludessrc/**/__tests__/**andsrc/**/*.test.*, the same way the other TypeScript packages in this repo exclude their tests.Why?
Every published tarball carried 191 test files under
src/__tests__/. They are not used at runtime and only add size: the packed tarball goes from 1.43 MB to 1.01 MB.How was it tested?
pnpm packandnpm pack --dry-runat the base and with this change: 738 → 547 entries, 191 → 0 test entries; the 502dist/files are byte-identical.Every entry point (
main,module,types, bothexportstargets,typesVersions) is present in the new tarball, andrequire/importof the packed tarball both load in a fresh project.fi-core jest 6026/6013/0/13, provider tests 144/144 (otel 2.0.1 and 2.12.0) and semantic-conventions 124/124: the same counts before and after.
Unit tests added / updated (no code change; package contents checked by pack listing)
Integration tests pass (or N/A — no gateway behavior changed)
npm run typecheck/npm run lintall passPublic types, env vars, or SDK behavior changes are documented in the relevant README (no public change)
Checklist
docs/VOCABULARY.mdNotes for reviewers
Targets
dev. Two lines intypescript/packages/fi-core/package.jsonand one CHANGELOG line.