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
These are then added to PATH so that they could be executed from anywhere in the developer's shell. It's been working fine, however I recently ran into an ERR_WORKER_OUT_OF_MEMORY error, which lead me to discovering that all of these scripts would also load .pnp.cjs from current working directory in which they are executed (the issue didn't manifest in CI, where .pnp.cjs was not present which is how I discovered the root cause).
The local .pnp.cjs has nothing to contribute to the correct execution of such script and therefore it is not desirable to load it.
Describe the solution you'd like
Some way of specifying that CWD (and it's parents) should not be searched for additional .pnp.cjs files.
Describe the drawbacks of your solution
not sure
Describe alternatives you've considered
Not use pnp to package such applications. Maybe there are other recommended ways of achieving desired result but I'm not aware of those.
The text was updated successfully, but these errors were encountered:
Describe the user story
I'm packaging internal cli applications for my team, using yarn and pnp. Each application uses following wrapper script to execute a nodejs script:
These are then added to
PATH
so that they could be executed from anywhere in the developer's shell. It's been working fine, however I recently ran into anERR_WORKER_OUT_OF_MEMORY
error, which lead me to discovering that all of these scripts would also load.pnp.cjs
from current working directory in which they are executed (the issue didn't manifest in CI, where .pnp.cjs was not present which is how I discovered the root cause).The local .pnp.cjs has nothing to contribute to the correct execution of such script and therefore it is not desirable to load it.
Describe the solution you'd like
Some way of specifying that CWD (and it's parents) should not be searched for additional
.pnp.cjs
files.Describe the drawbacks of your solution
not sure
Describe alternatives you've considered
Not use pnp to package such applications. Maybe there are other recommended ways of achieving desired result but I'm not aware of those.
The text was updated successfully, but these errors were encountered: