feat: gateway publishability + npmjs publish script #370

Merged
jason.woltje merged 1 commits from feat/gateway-publishability into main 2026-04-04 18:07:06 +00:00
Owner

Summary

  • Remove private: true from gateway package.json, add bin, files, npmjs publishConfig
  • Add #!/usr/bin/env node shebang to main.ts for global bin execution
  • New scripts/publish-npmjs.sh — patches @mosaic/*@mosaicstack/*, resolves workspace deps, publishes to npmjs, restores originals
  • Add publish-npmjs CI step in Woodpecker (tag events only, uses npmjs_token secret)
  • Update Gitea publish step to clarify gateway exclusion rationale

Test plan

  • Publish script dry-run works (--dry-run --filter @mosaic/types produces correct tarball)
  • Lint/format passes
  • Manual: NPM_TOKEN=xxx scripts/publish-npmjs.sh publishes to npmjs
  • Manual: Woodpecker npmjs_token secret configured
## Summary - Remove `private: true` from gateway package.json, add `bin`, `files`, npmjs `publishConfig` - Add `#!/usr/bin/env node` shebang to main.ts for global bin execution - New `scripts/publish-npmjs.sh` — patches `@mosaic/*` → `@mosaicstack/*`, resolves workspace deps, publishes to npmjs, restores originals - Add `publish-npmjs` CI step in Woodpecker (tag events only, uses `npmjs_token` secret) - Update Gitea publish step to clarify gateway exclusion rationale ## Test plan - [x] Publish script dry-run works (`--dry-run --filter @mosaic/types` produces correct tarball) - [x] Lint/format passes - [ ] Manual: `NPM_TOKEN=xxx scripts/publish-npmjs.sh` publishes to npmjs - [ ] Manual: Woodpecker `npmjs_token` secret configured
jason.woltje added 1 commit 2026-04-04 18:06:53 +00:00
feat: make gateway publishable + add npmjs publish script
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
ci/woodpecker/pr/ci Pipeline was successful
501370ad65
- Remove `private: true` from gateway package.json
- Add bin entry (mosaic-gateway), files array, npmjs publishConfig
- Add shebang to main.ts for bin execution
- New scripts/publish-npmjs.sh that patches @mosaic/* → @mosaicstack/*,
  resolves workspace deps to real versions, publishes to npmjs, restores
- Add publish-npmjs CI step in Woodpecker (runs on tags only)
- Update Gitea publish step comments for clarity

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
jason.woltje merged commit 86d6c214fe into main 2026-04-04 18:07:06 +00:00
jason.woltje deleted branch feat/gateway-publishability 2026-04-04 18:07:07 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: mosaicstack/stack#370