Skip to content

Conversation

@eps1lon
Copy link
Member

@eps1lon eps1lon commented Nov 5, 2025

kcd-scripts may use a different version of TypeScript since it resolves relative to kcd-scripts not the caller. It also uses --build which we're not using. Switching to basic tsc which makes it easier to reason about what is being used.

Fixes

Error: [typecheck] node_modules/@types/node/web-globals/streams.d.ts(10,9): error TS2502: 'CompressionStream' is referenced directly or indirectly in its own type annotation.

-- https://github.com/testing-library/react-testing-library/actions/runs/19101381490/job/54573962927?pr=1214

@eps1lon eps1lon changed the title [test] Fix npm run typecheck [test] Fix npm run validate Nov 5, 2025
@eps1lon eps1lon force-pushed the sebbie/11-05-_test_fix_npm_run_typecheck_ branch from 2bf4934 to e6b98aa Compare November 5, 2025 13:18
@codesandbox-ci
Copy link

codesandbox-ci bot commented Nov 5, 2025

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit e6b98aa:

Sandbox Source
react-testing-library-examples Configuration

@eps1lon eps1lon marked this pull request as ready for review November 5, 2025 13:22
@eps1lon eps1lon merged commit 590bc18 into main Nov 5, 2025
8 of 10 checks passed
@eps1lon eps1lon deleted the sebbie/11-05-_test_fix_npm_run_typecheck_ branch November 5, 2025 13:22
Comment on lines +14 to +16
"build:bundle:main": "dotenv -e .bundle.main.env kcd-scripts build -- --bundle --no-clean --no-ts-defs",
"build:bundle:pure": "dotenv -e .bundle.main.env -e .bundle.pure.env kcd-scripts build -- --bundle --no-clean --no-ts-defs",
"build:main": "kcd-scripts build --no-clean --no-ts-defs",
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also perf build optimization. We're not using generated declaration files but manually write ours.

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.

2 participants