You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would expect the @types/express to be added to the devDependencies of the package(s) specified in the filter.
Actual behavior:
The --save-dev or -D flags appear to be being ignore as@types/express is being added to dependencies instead of devDependences.
I have also tried this with the --save-peer flag which is also being ignored. Could be as simple as all flags intended for the add command are being ignored.
Additional information:
node -v prints: v12:14.1
Windows, OS X, or Linux?: Linux (node:erbium docker container)
The text was updated successfully, but these errors were encountered:
Recursively adding dependencies using --save-dev,
--save-optional, or --save-prod should work on
workspaces that don't use a central, shared
lockfile.
close#2294
Recursively adding dependencies using --save-dev,
--save-optional, --save-peer, or --save-prod should work on
workspaces that don't use a central, shared
lockfile.
BREAKING CHANGE:
- `@pnpm/config`
close#2294
PR #2312
pnpm version: 4.8.0
Code to reproduce the issue:
pnpm add --save-dev @types/express --filter <package_name>
Expected behavior:
I would expect the
@types/express
to be added to thedevDependencies
of the package(s) specified in the filter.Actual behavior:
The
--save-dev
or-D
flags appear to be being ignore as@types/express
is being added todependencies
instead ofdevDependences
.I have also tried this with the
--save-peer
flag which is also being ignored. Could be as simple as all flags intended for theadd
command are being ignored.Additional information:
node -v
prints: v12:14.1The text was updated successfully, but these errors were encountered: