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 have a monorepo, and want pnpm install --filter='*' to build only my packages, so I have a pnpm-workspace.yaml that looks like:
packages:
- 'packages/**'
- '!**/test/**'
Problem is, I have tests that is using pnpm to install dependencies for my fixtures. I can't find a way to manually override the behavior defined in pnpm-workspace.yaml
I'd expect running pnpm install in a directory would install the project no matter what the workspace configuration is, but it doesn't work.
$ cd 'my-project/packages/my-package/test/fixtures/test-project/package.json'
$ pnpm install
No projects matched the filters in "my-project"
Other stuff I also tried and failed the same way:
Removing the !**/test/** exclusion and using filter=@my-project at .npmrc
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have a monorepo, and want
pnpm install --filter='*'
to build only my packages, so I have apnpm-workspace.yaml
that looks like:Problem is, I have tests that is using
pnpm
to install dependencies for my fixtures. I can't find a way to manually override the behavior defined inpnpm-workspace.yaml
I'd expect running
pnpm install
in a directory would install the project no matter what the workspace configuration is, but it doesn't work.Other stuff I also tried and failed the same way:
!**/test/**
exclusion and usingfilter=@my-project
at.npmrc
pnpm install --filter='.'
pnpm install --filter='test-project'
Beta Was this translation helpful? Give feedback.
All reactions