Skip to content
This repository has been archived by the owner on Sep 20, 2022. It is now read-only.

PackageInstall allow passing dev and exact instructions #510

Open
n1ru4l opened this issue Feb 25, 2022 · 1 comment
Open

PackageInstall allow passing dev and exact instructions #510

n1ru4l opened this issue Feb 25, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@n1ru4l
Copy link
Member

n1ru4l commented Feb 25, 2022

<PackageInstall
  dev
  save
  packages="typescript @types/node ts-node ts-node-dev cross-env"
/>

should result in

npm install --save-dev --exact typescript @types/node ts-node ts-node-dev cross-env
yarn install --save-dev --exact typescript @types/node ts-node ts-node-dev cross-env
pnpm install --save-dev --exact typescript @types/node ts-node ts-node-dev cross-env
@n1ru4l n1ru4l added the enhancement New feature or request label Feb 25, 2022
@notrab
Copy link

notrab commented Apr 11, 2022

@n1ru4l should it not result in the following?

npm install --save-dev --save-exact typescript @types/node ts-node ts-node-dev cross-env
yarn add --dev --exact typescript @types/node ts-node ts-node-dev cross-env
pnpm add --save-dev --save-exact typescript @types/node ts-node ts-node-dev cross-env

add/install are often used interchangeably, but there's different flags (with a lot of crossover) between the commands.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants