fix: resolve DTS build failure and prettier formatting#34
Merged
Conversation
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
- Fix prettier formatting in src/testing/performance.ts (extra parens in void expressions) - Add ignoreDeprecations: "6.0" to tsconfig.json for TypeScript 6 baseUrl deprecation - Update @types/node ^25.5.1 → ^25.5.2 Closes #32
cdef0e6 to
c589eec
Compare
There was a problem hiding this comment.
Pull request overview
Updates build/publish configuration and minor formatting to resolve CI failures introduced by TypeScript 6 and packaging gaps, plus a small dependency bump.
Changes:
- Add
ignoreDeprecations: "6.0"to unblock TypeScript 6 DTS build warnings/errors. - Fix Prettier formatting in
src/testing/performance.tsforvoid+ regex expressions. - Update
@types/nodeto^25.5.2and includewasm/in the published npm package files.
Reviewed changes
Copilot reviewed 2 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
yarn.lock |
Locks @types/node to 25.5.2 to match the dependency update. |
tsconfig.json |
Adds ignoreDeprecations: "6.0" to address TS 6 deprecation impacting DTS builds. |
src/testing/performance.ts |
Removes unnecessary parentheses in void expressions to satisfy Prettier. |
package.json |
Publishes wasm/ alongside dist/ and bumps @types/node version. |
Contributor
Author
|
@coderabbitai full review |
OIDC trusted publishing only works for already-published packages. First publish requires explicit npm automation token. - Add NODE_AUTH_TOKEN env var pointing to NPM_TOKEN secret - Keep --provenance for OIDC signing (separate from auth) - Requires NPM_TOKEN secret in "release" environment Closes #35
- Upgrade actions/setup-node v4 → v6, node 22 → 24 - Use yarn npm publish instead of npm publish - Add idempotency check (skip if version already published) - Use NPM_CONFIG_PROVENANCE env var instead of --provenance flag Closes #35
npm trusted publishing authenticates via GitHub Actions OIDC identity. No secret tokens needed — configured at npmjs.com package settings. Closes #35
actions/setup-node with registry-url creates .npmrc with
NODE_AUTH_TOKEN=${GITHUB_TOKEN} which overrides OIDC auth.
Without registry-url, npm falls back to OIDC identity for auth.
Use package.json version (what npm publish uses) instead of git tag for idempotency check. Fail fast if tag and package.json diverge.
Contributor
Author
|
@coderabbitai resume and full review |
Upgrade all CI workflows to Node 24 + actions/setup-node@v6 to match publish.yml. Update test matrix from [20, 22] to [22, 24].
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.
Summary
src/testing/performance.ts(extra parens invoidexpressions)ignoreDeprecations: "6.0"to tsconfig.json — fixes TypeScript 6baseUrldeprecation that broke DTS build@types/node^25.5.1 → ^25.5.2registry-urlfrom setup-node (was overriding OIDC with invalid GITHUB_TOKEN)Auth: npm OIDC trusted publishing (no tokens needed).
Test plan
yarn build— CJS, ESM, DTS all passyarn test— 303 tests passedyarn format:check— cleanyarn lint— cleanyarn typecheck— cleanCloses #32
Closes #35