Skip to content

chore(validation-rules-client): bump to 1.4.1 for a clean republish - #452

Merged
durasj merged 1 commit into
mainfrom
claude/number-digits-decimals-rules-uatrmw
Aug 26, 2026
Merged

chore(validation-rules-client): bump to 1.4.1 for a clean republish#452
durasj merged 1 commit into
mainfrom
claude/number-digits-decimals-rules-uatrmw

Conversation

@durasj

@durasj durasj commented Aug 26, 2026

Copy link
Copy Markdown
Member

Problem

The published @epilot/[email protected] tarball is missing dist/openapi.d.ts:

$ npm pack @epilot/[email protected] && tar tzf …
package/dist/index.d.ts
package/dist/index.js
package/dist/openapi.d.ts     ← present

$ npm pack @epilot/[email protected] && tar tzf …
package/dist/index.d.ts
package/dist/index.js         ← openapi.d.ts missing

dist/index.d.ts does export * from './openapi', so with that file absent the re-export dangles and every TypeScript consumer of 1.4.0 gets no typesComponents, ValidationRule and friends are unresolvable:

error TS2305: Module '"@epilot/validation-rules-client"' has no exported member 'Components'.

Cause

Not a build bug — the build is correct. bundle-definition (webpack) copies the file:

asset openapi.d.ts 53.9 KiB [emitted] [from: src/openapi.d.ts] [copied]

and npm pack --dry-run after a clean pnpm run build lists dist/openapi.d.ts (55.2 kB). build:patch deliberately strips the runtime require of ./openapi from index.js, confirming the file is types-only and expected in dist.

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 (prepublishOnly does typegen && build) so dist/openapi.d.ts is in the tarball. Worth a tar tzf sanity check on the packed artifact before pushing it.

Follow-on

The two consumer MRs currently pin 1.4.0 and will be re-pinned to 1.4.1 once it is published:

Test plan

  • Clean pnpm run build emits dist/openapi.d.ts
  • npm pack --dry-run includes it (10 files total)
  • Confirmed 1.3.0 shipped it and 1.4.0 does not
  • CI green

Generated by Claude Code

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]>
@durasj
durasj merged commit 880bd40 into main Aug 26, 2026
7 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.

2 participants