Skip to content

Commit

Permalink
try to configure package names in schema metadata
Browse files Browse the repository at this point in the history
This does not appear to be working yet, so we are still using sed to
replace the nodejs package name
  • Loading branch information
jordanstephens committed Mar 6, 2025
1 parent d64c2df commit ce593bd
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 7 deletions.
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -68,21 +68,21 @@ test_provider:
cd tests && go test -short -v -count=1 -cover -timeout 5m -parallel ${TESTPARALLELISM} ./...

dotnet_sdk: DOTNET_VERSION := $(shell pulumictl get version --language dotnet)
dotnet_sdk: $(WORKING_DIR)/bin/$(PROVIDER)
dotnet_sdk: $(WORKING_DIR)/bin/$(PROVIDER) schema
rm -rf sdk/dotnet
pulumi package gen-sdk $(WORKING_DIR)/bin/$(PROVIDER) --language dotnet
cd ${PACKDIR}/dotnet/&& \
echo "${DOTNET_VERSION}" >version.txt && \
dotnet build /p:Version=${DOTNET_VERSION}

.PHONY: go_sdk
go_sdk: $(WORKING_DIR)/bin/$(PROVIDER)
go_sdk: $(WORKING_DIR)/bin/$(PROVIDER) schema
rm -rf sdk/go
pulumi package gen-sdk $(WORKING_DIR)/bin/$(PROVIDER) --language go

.PHONY: nodejs_sdk
nodejs_sdk: VERSION := $(shell pulumictl get version --language javascript)
nodejs_sdk: $(WORKING_DIR)/bin/$(PROVIDER)
nodejs_sdk: $(WORKING_DIR)/bin/$(PROVIDER) schema
rm -rf sdk/nodejs
pulumi package gen-sdk $(WORKING_DIR)/bin/$(PROVIDER) --language nodejs
cd ${PACKDIR}/nodejs/ && \
Expand All @@ -95,7 +95,7 @@ nodejs_sdk: $(WORKING_DIR)/bin/$(PROVIDER)

.PHONY: python_sdk
python_sdk: PYPI_VERSION := $(shell pulumictl get version --language python)
python_sdk: $(WORKING_DIR)/bin/$(PROVIDER)
python_sdk: $(WORKING_DIR)/bin/$(PROVIDER) schema
rm -rf sdk/python
pulumi package gen-sdk $(WORKING_DIR)/bin/$(PROVIDER) --language python
cp README.md ${PACKDIR}/python/
Expand Down
12 changes: 10 additions & 2 deletions metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,13 @@
"homepage": "https://github.com/DefangLabs/pulumi-defang",
"license": "Apache-2.0",
"repository": "https://github.com/DefangLabs/pulumi-defang",
"logoUrl": "https://raw.githubusercontent.com/DefangLabs/pulumi-defang/refs/heads/v1/docs/logo.png"
}
"logoUrl": "https://raw.githubusercontent.com/DefangLabs/pulumi-defang/refs/heads/v1/docs/logo.png",
"language": {
"csharp": {
"rootNamespace": "Defang"
},
"nodejs": {
"packageName": "@defang-io/pulumi-defang"
}
}
}
10 changes: 9 additions & 1 deletion provider/cmd/pulumi-resource-defang/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,5 +69,13 @@
"homepage": "https://github.com/DefangLabs/pulumi-defang",
"license": "Apache-2.0",
"repository": "https://github.com/DefangLabs/pulumi-defang",
"logoUrl": "https://raw.githubusercontent.com/DefangLabs/pulumi-defang/refs/heads/v1/docs/logo.png"
"logoUrl": "https://raw.githubusercontent.com/DefangLabs/pulumi-defang/refs/heads/v1/docs/logo.png",
"language": {
"csharp": {
"rootNamespace": "Defang"
},
"nodejs": {
"packageName": "@defang-io/pulumi-defang"
}
}
}

0 comments on commit ce593bd

Please sign in to comment.