Skip to content

Conversation

@mabels
Copy link
Contributor

@mabels mabels commented Feb 2, 2026

use pkg.pr.new

Summary by CodeRabbit

  • New Features
    • Added use-pkg-pr-new CLI flag to the build command, enabling optional publishing via pkg-pr-new. Flag defaults to enabled in CI environments.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Feb 2, 2026

Walkthrough

A new boolean CLI flag use-pkg-pr-new is added to the build command, defaulting to true in CI environments. When enabled, the build process executes npx pkg-pr-new publish as an additional publishing step after the main npm publish completes, with non-zero exit codes treated as errors.

Changes

Cohort / File(s) Summary
pkg-pr-new Publishing Flag
cli/build-cmd.ts
Introduces use-pkg-pr-new CLI flag (defaults to true in CI) and adds conditional logic to run npx pkg-pr-new publish after the main publish step succeeds. Flag is wired into both standard npm publish and npm directory copy publish flows.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately reflects the main change: adding a core CLI feature for publishing via pkg-pr-new.
Docstring Coverage ✅ Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch mabels/test-pkg.pr.new

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.

@pkg-pr-new
Copy link

pkg-pr-new bot commented Feb 2, 2026

Open in StackBlitz

npm i https://pkg.pr.new/fireproof-storage/fireproof/@fireproof/core-types-base@1589

commit: eea3bb0

@pkg-pr-new
Copy link

pkg-pr-new bot commented Feb 2, 2026

Open in StackBlitz

npm i https://pkg.pr.new/fireproof-storage/fireproof/@fireproof/core-device-id@1589

commit: eea3bb0

@pkg-pr-new
Copy link

pkg-pr-new bot commented Feb 2, 2026

Open in StackBlitz

npm i https://pkg.pr.new/fireproof-storage/fireproof/@fireproof/core-cli@1589

commit: eea3bb0

@pkg-pr-new
Copy link

pkg-pr-new bot commented Feb 2, 2026

Open in StackBlitz

npm i https://pkg.pr.new/fireproof-storage/fireproof/@fireproof/core-types-protocols-dashboard@1589

commit: eea3bb0

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