Skip to content

Give user option to run an update outdated patch, minor or all dependencies command. #7

@barrymichaeldoyle

Description

@barrymichaeldoyle

Coming in 2.8.0

This feature is going to entail a few things:

Don't end thread after summary

Instead of process.exit(1)ing at the end, give the user options to press p, m, or a for running the outdated patch, minor, or all dependencies update command.

Identify package managers

We'll need to identify whether their package manager is npm, pnpm, yarn, or bun.

not sure if there are others we should support? - if so, raise a separate issue please.

Use:

  • Use package-lock.json for npm
  • pnpm-lock.yaml for pnpm
  • yarn.lock for yarn
  • bun.lockb for bun

Config Options

In config options (or cli args), provide the opportunity to override the identified package manager.

Also give the flag to exitOnSummary (or think of better name for this flag) so that users can configure the ability to opt out of this feature.

Run Commands

  • For npm, use npm install <package-name>@<version-number>
  • For pnpm, use pnpm add <package-name>@<version-number>
  • For yarn, use yarn add <package-name>@<version-number>
  • For bun, use bun add <package-name>@<version-number>

Metadata

Metadata

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions