Replies: 1 comment 1 reply
-
To answer your question, have a look at pnpm filtering, specifically to excluding section For your use case though, I don't think it is a good idea as pnpm and yarn does lots of things differently and you may need to configure pnpm accordingly. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi pnpm friends, just wondering is there a way to exclude one directory from
pnpm install --recursive
?For example, in my
pnpm-workspace.yml
, there isand I would like not to install
node_modules
forfoobar
when runningpnpm install --recursive
infoo
orbar
, does anyone know whether it's possible?For context:
I'm migrating our mono-repo to pnpm from yarn. After migrating most of the nodejs packages to pnpm, there is one giant package left which serves the most important product in my company and there are more than 300 engineers work with it in a daily basis. Meaning I can't take the risk to migrate it in one go. As a consequence, I plan to modify the yarnrc:yarn-path so that when
EXPERIMENTAL_PNPM_AS_YARN
istrue
,pnpm
will be invoked even thoughyarn
is used. e.g. in yarnrc file:By doing so, I'm able to keep the CI the same while asking people to opt-in to
pnpm
progressively, and flip the flag when it's proven to be safe.However, one of the problem in this approach is that when people running
pnpm
in some other packages,node_modules
for this giant package will be installed as well and break theiryarn
experience.Beta Was this translation helpful? Give feedback.
All reactions