Skip to content

Add --yes to js_upgrade (passed through by upgrade) - #114

Open
iloveitaly wants to merge 1 commit into
masterfrom
cursor/js-upgrade-yes-flag-f8cc
Open

iloveitaly wants to merge 1 commit into
masterfrom
cursor/js-upgrade-yes-flag-f8cc

Conversation

@iloveitaly

@iloveitaly iloveitaly commented Sep 7, 2026

Copy link
Copy Markdown
Owner

Motivation

just js_upgrade always ran npm-check-updates in interactive mode, so unattended upgrades (and just upgrade) could not accept every package update without a TTY.

Description

  • Add a --yes flag to js_upgrade that:
    • passes --yes to pnpm dlx so package installs are not confirmed interactively
    • runs ncu --upgrade instead of --interactive, so every eligible dependency is written to package.json
  • just upgrade --yes forwards that flag to js_upgrade. Default behavior is unchanged.

Screenshots / Test

Dry-ran recipe expansion only (no package versions were bumped):

  • just --usage js_upgrade / just --usage upgrade list --yes
  • just -n js_upgrade still uses --interactive
  • just -n js_upgrade --yes uses dlx --yes and ncu --upgrade
  • just -n upgrade --yes expands the same non-interactive ncu command

Links

Open in Web Open in Cursor 

Non-interactive JS upgrades skip ncu prompts, write all package updates
with --upgrade, and auto-confirm pnpm dlx installs.

Co-authored-by: Michael Bianco <mike@mikebian.co>
@iloveitaly
iloveitaly marked this pull request as ready for review September 7, 2026 12:11
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.

2 participants