sparse-intern-71089
09/16/2021, 4:14 AMlittle-cartoon-10569
09/16/2021, 4:20 AMlittle-cartoon-10569
09/16/2021, 4:24 AMdamp-school-17708
09/16/2021, 7:11 AMprehistoric-nail-50687
09/16/2021, 7:19 AM{
"name": "tal-deployment",
"devDependencies": {
"@types/node": "^10.0.0"
},
"dependencies": {
"@pulumi/azure-native": "^0.7.1",
"@pulumi/cloudflare": "^2.14.0",
"@pulumi/pulumi": "^2.23.1",
"yoo-pulumi-modules": "<git+ssh://git@bitbucket.org/xxxx/xxx-pulumi-common.git#v0.10>"
}
}
The trick to get this working is to define a prepare script in the package.json of the common project:
{
"name": "xxx-pulumi-common",
"version": "1.0.0",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"dependencies": {
"@pulumi/azure-native": "^0.7.1",
"@pulumi/cloudflare": "^2.14.0",
"@pulumi/pulumi": "^2.23.1",
...
},
"devDependencies": {
"typescript": "^4.1.3"
},
"scripts": {
"prepare": "npx tsc"
},
"files": [
"dist/**/*"
]
}
prepare of the dependency will be executed when you call npm install in your project.No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.
Powered by