Skip to content

build(packages): exclude *.test.ts and *.spec.ts from builds - #143

Merged
elycruz merged 1 commit into
mainfrom
135-test-file-leak
Nov 3, 2026
Merged

elycruz merged 1 commit into
mainfrom
135-test-file-leak

Conversation

@elycruz

@elycruz elycruz commented Nov 3, 2026

Copy link
Copy Markdown
Member

Summary

The exclude globs in the package tsconfigs only matched *_test.ts, so src/number/numRange.test.ts was compiled and its declaration ended up in dist/esm. This adds src/**/*.test.ts and src/**/*.spec.ts to all five package tsconfigs.

Closes #135

Testing

  • pnpm build: no *.test.* or *.spec.* files under packages/*/dist
  • npx tsc --noEmit -p packages/fjl/tsconfig.json: clean
  • pnpm test: 133 suites and 1457 tests pass, and numRange.test.ts is still picked up

🤖 Generated with Claude Code

…from builds

The tsconfig exclude globs only matched *_test.ts, so src/number/numRange.test.ts
was compiled and its declaration was emitted to dist/esm.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@elycruz
elycruz merged commit 54a0f51 into main Nov 3, 2026
3 checks passed
@elycruz
elycruz deleted the 135-test-file-leak branch November 3, 2026 15:30
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.

build: test file leaks into the published fjl package

1 participant