prehistoric-sandwich-7272
01/31/2023, 4:25 PMechoing-dinner-19531
01/31/2023, 4:26 PMprehistoric-sandwich-7272
01/31/2023, 4:29 PMnpm ERR! need auth This command requires you to be logged in to <https://npm.pkg.github.com/>
npm ERR! need auth You need to authorize this machine using `npm adduser`
My suspicion is - that it happens because the Makefile script builds a package.json
inside sdk/nodejs/bin
with the following:
{
"name": "@pulumi/xyz",
"version": "0.0.1",
"repository": "pulumi-<MY_REPO_NAME>",
"scripts": {
"build": "tsc",
"install": "node scripts/install-pulumi-plugin.js resource xyz "
},
"dependencies": {
"@pulumi/aws": "^4.0.0"
},
"devDependencies": {
"typescript": "^3.7.0"
},
"peerDependencies": {
"@pulumi/pulumi": "latest"
},
"pulumi": {
"resource": true,
"pluginDownloadURL": "<github://api.github.com/@><MY_ORG>[/<MY_REPO_NAME>]"
}
}
Notice the part - "name": "@pulumi/xyz"
From my understanding it should be something like: "name": "@<MY_ORG_NAME>/xyz"
Is there a keyword that I can pass to the schema.yaml file in order to change this?echoing-dinner-19531
01/31/2023, 4:34 PM"languages": {
"nodejs": {
"packageName": "customPackageName"
}
}
to the schema it will change that.prehistoric-sandwich-7272
01/31/2023, 4:48 PMlanguages
in https://raw.githubusercontent.com/pulumi/pulumi/master/pkg/codegen/schema/pulumi.json
Maybe language
?packageName
value under language.nodejsechoing-dinner-19531
01/31/2023, 4:51 PMlanguage
no s. There is a pacakgeName
in the nodejsLanguageSpec
object.prehistoric-sandwich-7272
01/31/2023, 4:54 PMlanguage:
nodejs:
properties:
packageName: @<MY_ORG>/xyz
dependencies:
"@pulumi/aws": "^4.0.0"
devDependencies:
typescript: "^3.7.0"
I get an error when trying to run it tho...echoing-dinner-19531
01/31/2023, 4:54 PMlanguage:
nodejs:
packageName: @<MY_ORG>/xyz
dependencies:
"@pulumi/aws": "^4.0.0"
devDependencies:
typescript: "^3.7.0"
prehistoric-sandwich-7272
01/31/2023, 6:23 PM