Skip to content

Commit 2e04007

Browse files
clean up examples
1 parent 67fb473 commit 2e04007

File tree

7 files changed

+9
-32
lines changed

7 files changed

+9
-32
lines changed

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,9 @@ examples: go_example \
106106
nodejs_example \
107107
python_example \
108108
# dotnet_example
109+
# clean up package name in nodejs example
110+
sed -i -e 's|@pulumi/defang|@defang-io/pulumi-defang|' examples/nodejs/package.json examples/nodejs/index.ts
111+
109112

110113
%_example:
111114
rm -rf ${WORKING_DIR}/examples/$*

docs/installation-configuration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ The Pulumi provider for [Defang] (https://defang.io) - a radically simpler way t
99

1010
The Defang Pulumi provider, is available in most pulumi languages.
1111

12-
* JavaScript/TypeScript: [`@pulumi/defang`](https://www.npmjs.com/package/@pulumi/defang)
12+
* JavaScript/TypeScript: [`@defang-io/pulumi-defang`](https://www.npmjs.com/package/@defang-io/pulumi-defang)
1313
* Python: [`pulumi-defang`](https://pypi.org/project/pulumi-defang/)
1414
* Go: [`github.com/DefangLabs/pulumi-defang/sdk/v1/go/defang`](https://github.com/DefangLabs/pulumi-defang)
1515
* Java: Coming soon

examples/go/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ go 1.20
44

55
require (
66
github.com/pulumi/pulumi/sdk/v3 v3.30.0
7-
example.com/pulumi-defang/sdk v1.1.0-alpha.1741138078+d0029c80.dirty
7+
example.com/pulumi-defang/sdk v1.0.0-alpha+f8e6a2ee.dirty
88
)

examples/nodejs/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import * as pulumi from "@pulumi/pulumi";
2-
import * as defang from "@pulumi/defang";
2+
import * as defang from "@defang-io/pulumi-defang";
33

44
const myProject = new defang.Project("myProject", {
55
providerID: "aws",

examples/nodejs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66
"dependencies": {
77
"typescript": "^4.0.0",
88
"@pulumi/pulumi": "^3.0.0",
9-
"@pulumi/defang": "1.1.0-alpha.1741138078+d0029c80.dirty"
9+
"@defang-io/pulumi-defang": "1.0.0-alpha+f8e6a2ee.dirty"
1010
}
1111
}

examples/python/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
pulumi-defang==1.1.0-alpha.1741138078+d0029c80.dirty
1+
pulumi-defang==1.0.0-alpha+f8e6a2ee.dirty
22
pulumi>=3.0.0,<4.0.0

schema-defang.json

Lines changed: 1 addition & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1 @@
1-
{
2-
"name": "defang",
3-
"version": "1.1.0-alpha.1741138078+d0029c80.dirty",
4-
"config": {},
5-
"types": { "defang:v1:ServiceInfo": { "type": "object" } },
6-
"provider": {},
7-
"resources": {
8-
"defang:index:Project": {
9-
"properties": {
10-
"albArn": { "type": "string" },
11-
"configPaths": { "type": "array", "items": { "type": "string" } },
12-
"etag": { "type": "string" },
13-
"providerID": { "type": "string" },
14-
"services": {
15-
"type": "array",
16-
"items": { "$ref": "#/types/defang:v1:ServiceInfo" }
17-
}
18-
},
19-
"required": ["providerID", "configPaths", "etag", "albArn", "services"],
20-
"inputProperties": {
21-
"configPaths": { "type": "array", "items": { "type": "string" } },
22-
"providerID": { "type": "string" }
23-
},
24-
"requiredInputs": ["providerID", "configPaths"]
25-
}
26-
}
27-
}
1+
{"name":"defang","version":"v1.0.0-alpha+f8e6a2ee.dirty","config":{},"types":{"defang:v1:ServiceInfo":{"type":"object"}},"provider":{},"resources":{"defang:index:Project":{"properties":{"albArn":{"type":"string"},"configPaths":{"type":"array","items":{"type":"string"}},"etag":{"type":"string"},"providerID":{"type":"string"},"services":{"type":"array","items":{"$ref":"#/types/defang:v1:ServiceInfo"}}},"required":["providerID","configPaths","etag","albArn","services"],"inputProperties":{"configPaths":{"type":"array","items":{"type":"string"}},"providerID":{"type":"string"}},"requiredInputs":["providerID","configPaths"]}}}

0 commit comments

Comments
 (0)