Skip to content

fix: exclude tests from production TypeScript build - #375

Merged
mauriciopoppe merged 3 commits into
1.xfrom
codex/1x-build-fix
Oct 10, 2026
Merged

mauriciopoppe merged 3 commits into
1.xfrom
codex/1x-build-fix

Conversation

@mauriciopoppe

Copy link
Copy Markdown
Owner

The merged polar-grid PR adds TypeScript test files under src/. The production tsc build includes all src/**/*.ts files and then type-checks Jest declarations, which fails under the current Node 24 toolchain because @jest/types imports ForegroundColor from chalk.

This excludes src/**/*.test.ts from the production build; Jest and check-dts continue to validate tests separately.

Verified locally with: npx tsc --noEmit

@mauriciopoppe
mauriciopoppe merged commit 3203c1f into 1.x Oct 10, 2026
4 checks passed
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.

1 participant