Skip to content

Commit 6c76daf

Browse files
committed
Add spin watch configuration to templates
Signed-off-by: Caleb Schoepp <[email protected]>
1 parent c76bec6 commit 6c76daf

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

templates/http-js/content/spin.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,4 @@ source = "target/{{project-name | kebab_case}}.wasm"
1515
exclude_files = ["**/node_modules"]
1616
[component.{{project-name | kebab_case}}.build]
1717
command = "npm run build"
18+
watch = ["src/**/*.js", "package.json"]

templates/http-ts/content/spin.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,4 @@ source = "target/{{project-name | kebab_case}}.wasm"
1515
exclude_files = ["**/node_modules"]
1616
[component.{{project-name | kebab_case}}.build]
1717
command = "npm run build"
18+
watch = ["src/**/*.ts", "package.json"]

0 commit comments

Comments
 (0)