Skip to content

Commit ce593bd

Browse files
try to configure package names in schema metadata
This does not appear to be working yet, so we are still using sed to replace the nodejs package name
1 parent d64c2df commit ce593bd

File tree

3 files changed

+23
-7
lines changed

3 files changed

+23
-7
lines changed

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,21 +68,21 @@ test_provider:
6868
cd tests && go test -short -v -count=1 -cover -timeout 5m -parallel ${TESTPARALLELISM} ./...
6969

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

7878
.PHONY: go_sdk
79-
go_sdk: $(WORKING_DIR)/bin/$(PROVIDER)
79+
go_sdk: $(WORKING_DIR)/bin/$(PROVIDER) schema
8080
rm -rf sdk/go
8181
pulumi package gen-sdk $(WORKING_DIR)/bin/$(PROVIDER) --language go
8282

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

9696
.PHONY: python_sdk
9797
python_sdk: PYPI_VERSION := $(shell pulumictl get version --language python)
98-
python_sdk: $(WORKING_DIR)/bin/$(PROVIDER)
98+
python_sdk: $(WORKING_DIR)/bin/$(PROVIDER) schema
9999
rm -rf sdk/python
100100
pulumi package gen-sdk $(WORKING_DIR)/bin/$(PROVIDER) --language python
101101
cp README.md ${PACKDIR}/python/

metadata.json

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,13 @@
55
"homepage": "https://github.com/DefangLabs/pulumi-defang",
66
"license": "Apache-2.0",
77
"repository": "https://github.com/DefangLabs/pulumi-defang",
8-
"logoUrl": "https://raw.githubusercontent.com/DefangLabs/pulumi-defang/refs/heads/v1/docs/logo.png"
9-
}
8+
"logoUrl": "https://raw.githubusercontent.com/DefangLabs/pulumi-defang/refs/heads/v1/docs/logo.png",
9+
"language": {
10+
"csharp": {
11+
"rootNamespace": "Defang"
12+
},
13+
"nodejs": {
14+
"packageName": "@defang-io/pulumi-defang"
15+
}
16+
}
17+
}

provider/cmd/pulumi-resource-defang/schema.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,5 +69,13 @@
6969
"homepage": "https://github.com/DefangLabs/pulumi-defang",
7070
"license": "Apache-2.0",
7171
"repository": "https://github.com/DefangLabs/pulumi-defang",
72-
"logoUrl": "https://raw.githubusercontent.com/DefangLabs/pulumi-defang/refs/heads/v1/docs/logo.png"
72+
"logoUrl": "https://raw.githubusercontent.com/DefangLabs/pulumi-defang/refs/heads/v1/docs/logo.png",
73+
"language": {
74+
"csharp": {
75+
"rootNamespace": "Defang"
76+
},
77+
"nodejs": {
78+
"packageName": "@defang-io/pulumi-defang"
79+
}
80+
}
7381
}

0 commit comments

Comments
 (0)