mrm icon indicating copy to clipboard operation
mrm copied to clipboard

Update runPnpm install and uninstall

Open ryandialpad opened this issue 2 years ago • 0 comments

Purpose

Noticed an issue where runPnpm was passing --save in the args of uninstall, causing it to error out due to an unrecognized flag.

Decided to have a look through the pnpm cli docs and update the runPnpm args generation.

Changes

uninstall -> remove: uninstall is an alias for remove so might as well just use remove

install -> add: add is the equivalent of npm's install where it installs a package and any packages that it depends on...

--save -> --save-prod: --save does not exist as a flag for pnpm remove, --save-dev and --save-prod are documented flags for add and remove

Sources

  • https://docs.npmjs.com/cli/v8/commands/npm-install#save
  • https://pnpm.io/cli/install
  • https://pnpm.io/cli/add
  • https://pnpm.io/cli/remove

ryandialpad avatar Jul 30 '22 02:07 ryandialpad