Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

run fail: pnpm --filter "@babel/core" test #4630

Closed
a309492165 opened this issue Apr 27, 2022 · 8 comments
Closed

run fail: pnpm --filter "@babel/core" test #4630

a309492165 opened this issue Apr 27, 2022 · 8 comments

Comments

@a309492165
Copy link

run fail: pnpm --filter "anypackage" test
tip: No projects matched the filters in dirpath/xxx

@zkochan
Copy link
Member

zkochan commented Apr 28, 2022

Do you have @babel/core as a project in your workspace?

@geoynomous
Copy link

I have the same with an update

package.json

{
  "name": "pnpm7",
  "dependencies": {
    "async": "3.2.0",
    "chalk": "5.0.0",
    "lodash": "4.17.0"
  }
}

running (to only update lodash)

pnpm update --latest --filter="lodash"

results in

No projects matched the filters in "/private/tmp/pnpm7"

While actually I like to run

pnpm update --latest --filter="\!lodash"

that updates all - but not lodash

It also results in

No projects matched the filters in "/private/tmp/pnpm7"

Please advise

@zkochan
Copy link
Member

zkochan commented May 4, 2022

@geoynomous this is not how you update lodash. If you want to update lodash, run:

pnpm update lodash --latest

And there is no command to update everything except lodash. But you can run pnpm update --interactive --latest and pick everything except lodash.

@geoynomous
Copy link

The --interactive is nice - but we have like 20 recursive packages with > 500 packages ... we basically like to update all - except for a few that we know to stay on a certain version .... the interactive is human and error prone ..

@a309492165
Copy link
Author

as a project in your workspace?

package.json and node_modules is have 'axios',but run: pnpm --filter "axios" test. is fail
tip: No projects matched the filters in dirpath/xxx
1651738014(1)

@zkochan
Copy link
Member

zkochan commented May 5, 2022

This is not what filtering is for. pnpm --filter axios test will run the tests in axios, when axios is a project in your workspace. In this case, axios is just a dependency.

@zkochan zkochan closed this as completed May 5, 2022
@Kristinita
Copy link

Type: Questions

And there is no command to update everything except lodash

@zkochan,

  1. Did I understand correctly that pnpm doesn’t have a command to “update all dependencies except some dependencies to the latest versions”?
  2. Is it possible for pnpm users somehow to update to the latest versions all dependencies except some? Currently, I use grunt-dev-update. grunt-dev-update updates all dependencies except the dependencies specified in the value of the reportOnlyPkgs option. But it looks like grunt-dev-update is solely npm-compatible, not pnpm-compatible.

Thanks.

@zkochan
Copy link
Member

zkochan commented Sep 20, 2022

Did I understand correctly that pnpm doesn’t have a command to “update all dependencies except some dependencies to the latest versions”?

you understand correctly

There is a feature request for something like that: #5358

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants