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 don’t understand how can I update my devDependencies to the latest versions using pnpm + npm-check. If I follow the steps described in the npm-check descriptions, this command is launched:
In my MCVE, I want to update to the latest version of obsolete devDependencies “coffeescript” and “postcss”, but not update “imagemin-webp” (because the latest version of this package doesn’t work correctly for me with Node.js 18, and I don’t want to update it).
Command failed: yarn install --save @types/[email protected] --color=always
error `install` has been replaced with `add` to add new dependencies. Run "yarn add @types/[email protected]" instead.
Currently, in 2022 pnpm uses add, not install to add new dependencies. But it looks like npm-check use deprecated pnpm syntax.
1. Summary
I don’t understand how can I update my devDependencies to the latest versions using pnpm + npm-check. If I follow the steps described in the npm-check descriptions, this command is launched:
while the command to get the desired behavior looks like this:
It seems like npm-check is using some deprecated pnpm syntax.
2. MCVE
2.1. Task
I wish to update all of my devDependencies except for a some. Currently, this cannot be done using pnpm without third-party tools.
In my MCVE, I want to update to the latest version of obsolete devDependencies “coffeescript” and “postcss”, but not update “imagemin-webp” (because the latest version of this package doesn’t work correctly for me with Node.js 18, and I don’t want to update it).
2.2. Files
This configuration on the
KiraPnpmPackagesUpdate
branch of my GitHub repository for demonstrations, Travis CI build for this configuration.packages.json
:The part of the
.travis.yml
:3. Behavior
3.1. Desired
Like this command:
This command updates devDependencies “coffeescript” and “postcss” to the latest versions, but does nothing with “imagemin-webp”.
3.2. Current
Travis link:
As you can see this command is running:
4. Environment
Operating system:
Node.js v18.9.0
pnpm 7.11.0
npm-check 6.0.1
Thanks.
The text was updated successfully, but these errors were encountered: