Replies: 1 comment
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In a big monorepo that contains lots of packages for various teams, when a developer develops a single project (say
package-X
located atpackages/package-X/
), it is much faster to install dependencies for that projects only.Speaking for myself (and some of my colleagues), our preferred workflow are:
Point 2 can be achieved using either:
pnpm install --filter "package-X..."
pnpm install --filter "{packages/package-X/}..."
However, when the package name or path is long, these are inconvenient to type. So I wonder if there are token for filtering that specifies current working directory?
I imagine something like (
$cwd
is typed verbatim):When pnpm do the filtering
$cwd
will be replaced with the current working directory where the command is issued.What do you think?
I'm open to other filtering token syntax too
Beta Was this translation helpful? Give feedback.
All reactions