feat: npm publish — build pipeline, dist/, GitHub Actions workflow#2
Conversation
- 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>
|
Warning Rate limit exceeded
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 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 configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (4)
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
Summary
bun build(ESM bundle →dist/index.js) +tsc --emitDeclarationOnly(→dist/**/*.d.ts)tsconfig.build.json: extends base config, addsdeclaration,declarationMap,rootDir; excludes__tests__package.json:main,module,types,exports,filesfields for npm;prepublishOnlyruns tests then buildzod >=4.0.0;@chatman/ragstays indevDependencies(GitHub) until it's published to npm separately.github/workflows/publish.yml: publishes to npm onv*tag push, requiresNPM_TOKENsecretchatman_sales→sales(package.json, README badge)How to publish
NPM_TOKENsecret in repo Settings → Secrets → Actionsgit tag v0.1.0 && git push origin v0.1.0npm publish --access publicTest plan
bun test— 73 passbun run build— producesdist/index.js+dist/index.d.tsbun run typecheck— no errorsbun run check— biome clean🤖 Generated with Claude Code