Skip to content
This repository was archived by the owner on Sep 23, 2026. It is now read-only.

Build on prepare so publishes ship fresh output (0.17.1) - #9

Merged
michielbdejong merged 1 commit into
mainfrom
claude/fix-publish-build
Aug 24, 2026
Merged

michielbdejong merged 1 commit into
mainfrom
claude/fix-publish-build

Conversation

@michielbdejong

Copy link
Copy Markdown
Contributor

Problem

build/ is git-ignored and files publishes build/src, but there was no prepublishOnly/prepare hook — so npm publish ships whatever build/ is in the working tree. That's how 0.17.0 went out with a stale build missing the #7 fixes (identityField, PATCH updates, array pagination): the published tarball's build/src predated those changes.

Fix

Add prepare: npm run build:release so the output is always rebuilt from source before packing (and when the package is installed as a git dependency, which is how localthought/reflector consumes it in the meantime). Bump to 0.17.1.

Verified: npm pack now produces a tarball whose build/src/client/client.{js,d.ts} contains identityField and whose discover.js contains updateMethod.

Note on the npm registry

npm's published 0.17.0 is still the stale build. Republishing as 0.17.1 (this version, now that prepare guarantees a correct build) will fix the registry. Reflector currently pins the git commit, so it isn't blocked on that.

🤖 Generated with Claude Code

https://claude.ai/code/session_01BdadF8jAvK2e8Fmis3hLJF


Generated by Claude Code

…7.1)

The package ships a prebuilt build/src (gitignored) but had no prepublishOnly/
prepare hook, so `npm publish` shipped whatever build/ happened to be in the
working tree — which is how 0.17.0 went out with a stale build missing the #7
fixes. Add `prepare: npm run build:release` so the output is always rebuilt from
source before packing (and when the package is installed as a git dependency),
and bump to 0.17.1.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BdadF8jAvK2e8Fmis3hLJF
@michielbdejong
michielbdejong merged commit c77c754 into main Aug 24, 2026
2 checks passed
@michielbdejong
michielbdejong deleted the claude/fix-publish-build branch September 21, 2026 15:42
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants