chore(validation-rules-client): bump to 1.4.1 for a clean republish - #452
Merged
Conversation
The 1.4.0 tarball on npm is missing dist/openapi.d.ts, so its dist/index.d.ts re-export of './openapi' dangles and consumers get no Components/ValidationRule types. The build is correct - the bundle-definition step copies src/openapi.d.ts into dist - so 1.4.0 was published without that build having run. No source change; npm will not let 1.4.0 be overwritten, so this is a patch version to publish cleanly (run the build, or let prepublishOnly run it, so dist/openapi.d.ts is in the tarball). Co-Authored-By: Claude <[email protected]>
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.
Problem
The published
@epilot/[email protected]tarball is missingdist/openapi.d.ts:dist/index.d.tsdoesexport * from './openapi', so with that file absent the re-export dangles and every TypeScript consumer of 1.4.0 gets no types —Components,ValidationRuleand friends are unresolvable:Cause
Not a build bug — the build is correct.
bundle-definition(webpack) copies the file:and
npm pack --dry-runafter a cleanpnpm run buildlistsdist/openapi.d.ts(55.2 kB).build:patchdeliberately strips the runtimerequireof./openapifromindex.js, confirming the file is types-only and expected indist.So 1.4.0 went out without that build having run (published from an empty or stale
dist).Fix
No source change — npm won't allow overwriting a published version, so this is a patch bump to republish cleanly. When publishing, make sure the build runs (
prepublishOnlydoestypegen && build) sodist/openapi.d.tsis in the tarball. Worth atar tzfsanity check on the packed artifact before pushing it.Follow-on
The two consumer MRs currently pin
1.4.0and will be re-pinned to1.4.1once it is published:Test plan
pnpm run buildemitsdist/openapi.d.tsnpm pack --dry-runincludes it (10 files total)Generated by Claude Code