brave-afternoon-91593
11/03/2021, 3:46 AM/lib/**/*.ts
, then install it by adding something like "lib": "file:../lib"
to my package.json
in each of the other directories. However, I don’t want this lib to define provider versions, rather I’d like the lib’s package.json
to simply reference peerDependencies
of the referenced Pulumi providers. However, when I do this, pulumi fails to preview thanks to error TS2307: Cannot find module '@pulumi/aws|kubernetes'.
This is probably just a Typescript question, but surely there’s a way to tell typescript that the types referenced in the libs should refer to the types defined in the project package.json.billowy-army-68599
npm install ../common/fargate_webapp/
brave-afternoon-91593
11/03/2021, 3:48 AMbillowy-army-68599
brave-afternoon-91593
11/03/2021, 3:50 AMbillowy-army-68599
brave-afternoon-91593
11/03/2021, 3:51 AMbillowy-army-68599