chore(pkg): release hygiene - dep pins, metadata, tarball, gates - #239
Merged
Conversation
Contributor
|
🎉 PR Validation ✅ PASSED Commit: Checks:
Ready to merge! ✨ 🔗 View workflow run |
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.
What
Packaging and release-hygiene pass. No
src/behavior change beyond a Node guard.chalk ^5.6.2,commander ^14.0.3,open ^11.0.0(werelatest). devDeps left as-is (lockfile covers them).latestspecifier, so this can't regress.author,bugs.url,types(./dist/index.d.ts),publishConfig.access: public.tsconfig.build.jsonoverridessourceMap: false+declarationMap: false(declarations kept).src/cli.ts, dependency-free (no chalk) - if Node major < 22 printagentage requires Node.js >= 22 (you have v<x>)to stderr and exit 1.^chore\(release\)to the release-subject alternation (squash subjects with that prefix previously forced a manualworkflow_dispatch). Escape hatch kept.scripts/bump-version.js: if the computed next version is0.1.19(permanently burned npm slot, hard-403 on publish), skip to0.1.20..npmignore: thefiles: ["dist"]allowlist wins, so.npmignorenever fired and was misleading.CHANGELOG.mdto thefilesallowlist so the tarball actually ships it (npm only auto-includes README/LICENSE).memory-core + server-memory + @modelcontextprotocol/sdk + chalk + commander + open).Why
latestspecifiers make installs non-reproducible; sourcemaps ~doubled the tarball; the missing gate prefix + burned-slot bump caused prior manual-release friction; the doc line was inaccurate.Kept (not removed)
@anthropic-ai/sdkdevDep:scripts/generate-changelog.jsimports it (import Anthropic from '@anthropic-ai/sdk'), so it is genuinely used - left in place.Verification
npm run verifygreen: type-check + type-check:e2e + lint + format:check + 338 tests passing + build.npm pack --dry-run:.mapfiles.mapfiles (92 map files removed; +1 for CHANGELOG.md)dist/(incl.dist/cli.js,dist/index.d.ts), README.md, LICENSE, CHANGELOG.md.node dist/cli.js --version->0.0.3on Node 22.