clever-painter-96148
11/02/2021, 2:36 PM"installConfig": {"hoistingLimits": "workspace"}
Not super happy with it as we have dozen of other packages in the monorepo and disabling hoisting make us pay some penalty (mostly longer CI builds and bigger FS usage for node_modules).
Yarn 3 has a new feature that replaces node_modules directories completely: https://yarnpkg.com/features/pnp
It's amazingly fast! We do not even need to run "yarn install" anymore (cf https://yarnpkg.com/features/zero-installs)
To use it, I need to do this before running the Pulumi program:
require('./.pnp.cjs').setup();
However, I cannot find a way to do this in a TypeScript program. Guess I should configure TS to allow importing .cjs files and import it using an import statement in the TS file?
What about native support for Yarn's PnP in Pulumi? Would you accept such a PR? If so, is this the right place: https://github.com/pulumi/pulumi/blob/master/sdk/nodejs/cmd/run/run.ts#L247 ?limited-rainbow-51650
11/02/2021, 3:12 PMnode_modules
folder is deep in the implementation of Pulumi core.
https://github.com/pulumi/pulumi/pull/4349clever-painter-96148
11/02/2021, 9:25 PMfinding the Pulumi plugins is iterating over theThis is definitely blocking :(folder in Go code to find the plugin binaries.node_modules
proud-pizza-80589
11/03/2021, 7:36 AM