bright-horse-50102
03/22/2022, 9:29 PMpulumi up
?
I'm working with a typescript monorepo and it would be cool to have my pulumi infrastructure be a package inside of that monorepo like the others - but the monorepo manages dependencies through Yarn PnP (with corepack) which means we need to pass a -r ./.pnp.cjs
flag to node
for dependencies like @pulumi/pulumi
to resolvelittle-cartoon-10569
03/22/2022, 9:55 PMnodeargs
property to the runtime:options
object. So you need a block like this in your Pulumi.yaml:
runtime:
name: nodejs
options:
nodeargs: -r ./pnp.cjs
bright-horse-50102
03/22/2022, 10:26 PMnode_modules
on the filesystem, just -r ./.pnp.cjs
isn't enough, but using yarn's pnpify shim is. https://github.com/pulumi/pulumi/issues/3586#issuecomment-782589776