[Question] Plug'n'Play for nested project that only exists at build time? #2681
-
I use OpenFaaS, and I use yarn. While pnp is very good in most project setups, I have a use case that may be too niche, but if it's possible I'd like to know what kind of config I would need to have. The structure: In OpenFaaS, you have a Next you have the When OpenFaaS runs the function container, it starts the outer function, which then imports and calls the inner function. This works well when both the projects are set to Ideally, I would like to be able to have the outer function use Any ideas? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Use |
Beta Was this translation helpful? Give feedback.
Use
pnpIgnorePatterns
in the outer function's.yarnrc.yml
to ignore the inner function's folder, PnP will then use whatever that inner function is set up to usehttps://yarnpkg.com/configuration/yarnrc#pnpIgnorePatterns