Skip to content

feat: npm publish — build pipeline, dist/, GitHub Actions workflow#2

Merged
chatman-media merged 1 commit into
mainfrom
claude/vibrant-volhard-04e17f
May 14, 2026
Merged

feat: npm publish — build pipeline, dist/, GitHub Actions workflow#2
chatman-media merged 1 commit into
mainfrom
claude/vibrant-volhard-04e17f

Conversation

@chatman-media

Copy link
Copy Markdown
Owner

Summary

  • Build pipeline: bun build (ESM bundle → dist/index.js) + tsc --emitDeclarationOnly (→ dist/**/*.d.ts)
  • tsconfig.build.json: extends base config, adds declaration, declarationMap, rootDir; excludes __tests__
  • package.json: main, module, types, exports, files fields for npm; prepublishOnly runs tests then build
  • Peer deps: zod >=4.0.0; @chatman/rag stays in devDependencies (GitHub) until it's published to npm separately
  • .github/workflows/publish.yml: publishes to npm on v* tag push, requires NPM_TOKEN secret
  • Repo rename: updated all URLs chatman_salessales (package.json, README badge)

How to publish

  1. Add NPM_TOKEN secret in repo Settings → Secrets → Actions
  2. Tag a release: git tag v0.1.0 && git push origin v0.1.0
  3. CI runs tests → build → npm publish --access public

Test plan

  • bun test — 73 pass
  • bun run build — produces dist/index.js + dist/index.d.ts
  • bun run typecheck — no errors
  • bun run check — biome clean

🤖 Generated with Claude Code

- Add build script: bun build (ESM bundle) + tsc --emitDeclarationOnly (.d.ts)
- Add tsconfig.build.json for declaration generation
- Add prepublishOnly: run tests then build
- Set main/module/types/exports/files fields for npm
- Move zod to peerDependencies; @chatman/rag in devDependencies (GitHub)
  until @chatman/rag is published to npm separately
- Add .github/workflows/publish.yml: publish on v* tag push
- Update repo URLs to renamed repo (chatman_sales → sales)
- Update CI badge in README

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented May 14, 2026

Copy link
Copy Markdown

Warning

Rate limit exceeded

@chatman-media has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 2 minutes and 19 seconds before requesting another review.

You’ve run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 225ea357-69fb-47db-9e19-17c87c0173c1

📥 Commits

Reviewing files that changed from the base of the PR and between 55d6c34 and 5dbe3db.

⛔ Files ignored due to path filters (1)
  • bun.lock is excluded by !**/*.lock
📒 Files selected for processing (4)
  • .github/workflows/publish.yml
  • README.md
  • package.json
  • tsconfig.build.json
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch claude/vibrant-volhard-04e17f

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@chatman-media chatman-media merged commit 7fc2f19 into main May 14, 2026
3 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.

1 participant