Skip to content

[Question] Plug'n'Play for nested project that only exists at build time? #2681

Answered by merceyz
kevin-lindsay-1 asked this question in Q&A
Discussion options

You must be logged in to vote

Ideally, I would like to be able to have the outer function use pnp for the sake of speed and build times, and once the template is pulled down, the inner function is owned by the person creating it. I would like to be able to support the inner function using either pnp or node-modules as desired, and keep a clean separation between the two projects' dependencies.

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 use

https://yarnpkg.com/configuration/yarnrc#pnpIgnorePatterns

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@kevin-lindsay-1
Comment options

@merceyz
Comment options

@kevin-lindsay-1
Comment options

Answer selected by kevin-lindsay-1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #2680 on April 03, 2021 00:01.