Skip to content

Commit c4f9519

Browse files
committed
update to componentizeJS 0.17
Signed-off-by: karthik2804 <[email protected]>
1 parent f379208 commit c4f9519

File tree

3 files changed

+21
-10
lines changed

3 files changed

+21
-10
lines changed

bin/j2w.mjs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,20 @@ const args = yargs(hideBin(process.argv))
3737
describe: "Spin trigger to target",
3838
demandOption: true
3939
})
40+
.option('debug-build', {
41+
describe: "Use debug build of the runtime",
42+
type: 'boolean',
43+
})
4044
.option('aot', {
4145
describe: "Enable Ahead of Time compilation",
4246
type: 'boolean',
4347
})
48+
.check((argv) => {
49+
if (argv['debug-build'] && argv['runtime-path']) {
50+
throw new Error("The --runtime-path option cannot be used when --debug-build is enabled.");
51+
}
52+
return true;
53+
})
4454
.argv;
4555

4656
const src = args.input;
@@ -123,6 +133,7 @@ async function saveBuildData(buildDataPath, checksum, version) {
123133
worldName: args.triggerType,
124134
disableFeatures: [],
125135
enableFeatures: ["http"],
136+
debugBuild: args.debugBuild,
126137
enableAot: args.aot
127138
});
128139

package-lock.json

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@fermyon/spin-sdk",
3-
"version": "3.1.0",
3+
"version": "3.2.0",
44
"description": "",
55
"main": "lib/index.js",
66
"typings": "lib/index.d.ts",
@@ -26,7 +26,7 @@
2626
"typescript": "^5.4.3"
2727
},
2828
"dependencies": {
29-
"@bytecodealliance/componentize-js": "^0.16.0",
29+
"@bytecodealliance/componentize-js": "^0.17.0",
3030
"@fermyon/knitwit": "^0.3.0",
3131
"acorn-walk": "^8.3.4",
3232
"acron": "^1.0.5",
@@ -45,4 +45,4 @@
4545
"world": "spin-imports"
4646
}
4747
}
48-
}
48+
}

0 commit comments

Comments
 (0)