Skip to content

Commit 0eaf37c

Browse files
committed
feat: add support for yarn
Signed-off-by: Thorsten Hans <[email protected]>
1 parent e2aa3e5 commit 0eaf37c

File tree

5 files changed

+8
-3
lines changed

5 files changed

+8
-3
lines changed

templates/http-js/content/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@
2020
"@fermyon/spin-sdk": "^3.0.0",
2121
"itty-router": "^5.0.18"
2222
}
23-
}
23+
}

templates/http-js/content/spin.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ component = "{{project-name | kebab_case}}"
1313
[component.{{project-name | kebab_case}}]
1414
source = "dist/{{project-name | kebab_case}}.wasm"
1515
exclude_files = ["**/node_modules"]
16+
allowed_outbound_hosts = []
17+
1618
[component.{{project-name | kebab_case}}.build]
1719
command = ["npm install", "npm run build"]
18-
watch = ["src/**/*.js"]
20+
watch = ["src/**/*.js"]

templates/http-ts/content/spin.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ component = "{{project-name | kebab_case}}"
1313
[component.{{project-name | kebab_case}}]
1414
source = "dist/{{project-name | kebab_case}}.wasm"
1515
exclude_files = ["**/node_modules"]
16+
1617
[component.{{project-name | kebab_case}}.build]
1718
command = ["npm install", "npm run build"]
18-
watch = ["src/**/*.ts"]
19+
watch = ["src/**/*.ts"]

templates/redis-js/content/spin.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ component = "{{project-name | kebab_case}}"
1616
[component.{{project-name | kebab_case}}]
1717
source = "dist/{{project-name | kebab_case}}.wasm"
1818
exclude_files = ["**/node_modules"]
19+
1920
[component.{{project-name | kebab_case}}.build]
2021
command = "npm install && npm run build"
2122
watch = ["src/**/*.ts", "package.json"]

templates/redis-ts/content/spin.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ component = "{{project-name | kebab_case}}"
1616
[component.{{project-name | kebab_case}}]
1717
source = "dist/{{project-name | kebab_case}}.wasm"
1818
exclude_files = ["**/node_modules"]
19+
1920
[component.{{project-name | kebab_case}}.build]
2021
command = "npm install && npm run build"
2122
watch = ["src/**/*.ts", "package.json"]

0 commit comments

Comments
 (0)