Skip to content

Commit

Permalink
feat: add support for yarn
Browse files Browse the repository at this point in the history
Signed-off-by: Thorsten Hans <[email protected]>
  • Loading branch information
ThorstenHans committed Feb 11, 2025
1 parent e2aa3e5 commit 0eaf37c
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion templates/http-js/content/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@
"@fermyon/spin-sdk": "^3.0.0",
"itty-router": "^5.0.18"
}
}
}
4 changes: 3 additions & 1 deletion templates/http-js/content/spin.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ component = "{{project-name | kebab_case}}"
[component.{{project-name | kebab_case}}]
source = "dist/{{project-name | kebab_case}}.wasm"
exclude_files = ["**/node_modules"]
allowed_outbound_hosts = []

[component.{{project-name | kebab_case}}.build]
command = ["npm install", "npm run build"]
watch = ["src/**/*.js"]
watch = ["src/**/*.js"]
3 changes: 2 additions & 1 deletion templates/http-ts/content/spin.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ component = "{{project-name | kebab_case}}"
[component.{{project-name | kebab_case}}]
source = "dist/{{project-name | kebab_case}}.wasm"
exclude_files = ["**/node_modules"]

[component.{{project-name | kebab_case}}.build]
command = ["npm install", "npm run build"]
watch = ["src/**/*.ts"]
watch = ["src/**/*.ts"]
1 change: 1 addition & 0 deletions templates/redis-js/content/spin.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ component = "{{project-name | kebab_case}}"
[component.{{project-name | kebab_case}}]
source = "dist/{{project-name | kebab_case}}.wasm"
exclude_files = ["**/node_modules"]

[component.{{project-name | kebab_case}}.build]
command = "npm install && npm run build"
watch = ["src/**/*.ts", "package.json"]
1 change: 1 addition & 0 deletions templates/redis-ts/content/spin.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ component = "{{project-name | kebab_case}}"
[component.{{project-name | kebab_case}}]
source = "dist/{{project-name | kebab_case}}.wasm"
exclude_files = ["**/node_modules"]

[component.{{project-name | kebab_case}}.build]
command = "npm install && npm run build"
watch = ["src/**/*.ts", "package.json"]

0 comments on commit 0eaf37c

Please sign in to comment.