diff --git a/Makefile b/Makefile index fee02c7..9245ea2 100644 --- a/Makefile +++ b/Makefile @@ -55,7 +55,7 @@ provider:: tfgen install_plugins # build the provider binary build_sdks:: install_plugins provider build_nodejs_sdk build_python build_go build_dotnet # build all the sdks -build_nodejs_sdk:: VERSION := $(shell pulumictl get version --language javascript --omit-commit-hash) +build_nodejs_sdk:: VERSION := $(shell pulumictl get version --omit-commit-hash) build_nodejs_sdk:: install_plugins tfgen # build the node sdk $(WORKING_DIR)/bin/$(TFGEN) nodejs --overlays provider/overlays/nodejs --out sdk/nodejs/ cd sdk/nodejs/ && \ @@ -63,9 +63,7 @@ build_nodejs_sdk:: install_plugins tfgen # build the node sdk yarn run tsc && \ cp -R scripts/ bin && \ cp ../../README.md ../../LICENSE package.json yarn.lock ./bin/ && \ - sed -i.bak -e "s/\$${VERSION}/$(VERSION)/g" ./bin/package.json && \ - jq '.main = "./bin/index.js"' ./bin/package.json > tmp.$$.json && mv tmp.$$.json ./bin/package.json && \ - jq '.types = "./bin/index.d.ts"' ./bin/package.json > tmp.$$.json && mv tmp.$$.json ./bin/package.json + sed -i.bak -e "s/\$${VERSION}/$(VERSION)/g" ./bin/package.json build_python:: PYPI_VERSION := $(shell pulumictl get version --language python --omit-commit-hash) build_python:: install_plugins tfgen # build the python sdk diff --git a/provider/cmd/pulumi-resource-checkly/schema.json b/provider/cmd/pulumi-resource-checkly/schema.json index 7beec94..d2ab188 100644 --- a/provider/cmd/pulumi-resource-checkly/schema.json +++ b/provider/cmd/pulumi-resource-checkly/schema.json @@ -11,7 +11,7 @@ "attribution": "This Pulumi package is based on the [`checkly` Terraform Provider](https://github.com/checkly/terraform-provider-checkly).", "repository": "https://github.com/checkly/pulumi-checkly", "logoUrl": "https://raw.githubusercontent.com/checkly/pulumi-checkly/main/assets/checkly.svg", - "pluginDownloadURL": "https://github.com/checkly/pulumi-checkly/releases/download/${VERSION}", + "pluginDownloadURL": "https://github.com/checkly/pulumi-checkly/releases/download/v${VERSION}", "publisher": "checkly", "meta": { "moduleFormat": "(.*)(?:/[^/]*)" diff --git a/provider/resources.go b/provider/resources.go index f7e7536..f1c87e0 100644 --- a/provider/resources.go +++ b/provider/resources.go @@ -56,7 +56,7 @@ func Provider() tfbridge.ProviderInfo { Publisher: "checkly", LogoURL: "https://raw.githubusercontent.com/checkly/pulumi-checkly/main/assets/checkly.svg", Description: "A Pulumi package for creating and managing Checkly monitoring resources.", - PluginDownloadURL: "https://github.com/checkly/pulumi-checkly/releases/download/${VERSION}", + PluginDownloadURL: "https://github.com/checkly/pulumi-checkly/releases/download/v${VERSION}", Keywords: []string{"pulumi", "checkly", "category/monitoring"}, License: "MIT", Homepage: "https://www.pulumi.com/registry/packages/checkly", diff --git a/sdk/nodejs/package.json b/sdk/nodejs/package.json index 20264c4..d8e851c 100644 --- a/sdk/nodejs/package.json +++ b/sdk/nodejs/package.json @@ -24,6 +24,6 @@ }, "pulumi": { "resource": true, - "pluginDownloadURL": "https://github.com/checkly/pulumi-checkly/releases/download/${VERSION}" + "pluginDownloadURL": "https://github.com/checkly/pulumi-checkly/releases/download/v${VERSION}" } } diff --git a/sdk/nodejs/scripts/install-pulumi-plugin.js b/sdk/nodejs/scripts/install-pulumi-plugin.js index 22ec4a9..b7f2132 100644 --- a/sdk/nodejs/scripts/install-pulumi-plugin.js +++ b/sdk/nodejs/scripts/install-pulumi-plugin.js @@ -7,7 +7,7 @@ if (args.indexOf("${VERSION}") !== -1) { process.exit(0); } -var res = childProcess.spawnSync("pulumi", ["plugin", "install", "--server", "https://github.com/checkly/pulumi-checkly/releases/download/${VERSION}"].concat(args), { +var res = childProcess.spawnSync("pulumi", ["plugin", "install", "--server", "https://github.com/checkly/pulumi-checkly/releases/download/v${VERSION}"].concat(args), { stdio: ["ignore", "inherit", "inherit"] }); diff --git a/sdk/nodejs/utilities.ts b/sdk/nodejs/utilities.ts index 7d70a52..a659347 100644 --- a/sdk/nodejs/utilities.ts +++ b/sdk/nodejs/utilities.ts @@ -50,5 +50,5 @@ export function getVersion(): string { /** @internal */ export function resourceOptsDefaults(): any { - return { version: getVersion(), pluginDownloadURL: "https://github.com/checkly/pulumi-checkly/releases/download/${VERSION}" }; + return { version: getVersion(), pluginDownloadURL: "https://github.com/checkly/pulumi-checkly/releases/download/v${VERSION}" }; }