Skip to content

Commit 7e4cf81

Browse files
committed
chore: incorporate latest changes from main
Signed-off-by: Thorsten Hans <[email protected]>
1 parent eac6e0d commit 7e4cf81

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

templates/http-js/content/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@
2323
"itty-router": "^5.0.18",
2424
{%- endcase %}
2525
"@spinframework/build-tools": "^1.0.1",
26-
"@spinframework/wasi-http-proxy": "^1.0.0",
26+
"@spinframework/wasi-http-proxy": "^1.0.0"
2727
}
2828
}

templates/http-ts/content/package.json

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "{{project-description}}",
55
"main": "index.js",
66
"scripts": {
7-
"build": "knitwit --out-dir build/wit/knitwit --out-world combined && npx webpack --mode=production && npx mkdirp dist && npx j2w -i build/bundle.js -d build/wit/knitwit -n combined -o dist/{{ project-name | kebab_case }}.wasm",
7+
"build": "npx webpack && mkdirp dist && j2w -i build/bundle.js -o dist/{{ project-name | kebab_case }}.wasm",
88
"test": "echo \"Error: no test specified\" && exit 1"
99
},
1010
"keywords": [],
@@ -15,11 +15,16 @@
1515
"ts-loader": "^9.4.1",
1616
"typescript": "^4.8.4",
1717
"webpack": "^5.74.0",
18-
"webpack-cli": "^4.10.0",
19-
"@fermyon/knitwit": "0.3.0"
18+
"webpack-cli": "^4.10.0"
2019
},
2120
"dependencies": {
22-
"@fermyon/spin-sdk": "^3.0.0",
23-
"itty-router": "^5.0.18"
21+
{%- case http-router -%}
22+
{% when "hono" %}
23+
"hono": "^4.7.4",
24+
{% when "itty" %}
25+
"itty-router": "^5.0.18",
26+
{%- endcase %}
27+
"@spinframework/build-tools": "^1.0.1",
28+
"@spinframework/wasi-http-proxy": "^1.0.0"
2429
}
2530
}

0 commit comments

Comments
 (0)