@bytecodealliance/jco 0.13.2 → 0.13.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bytecodealliance/jco",
3
- "version": "0.13.2",
3
+ "version": "0.13.3",
4
4
  "description": "JavaScript tooling for working with WebAssembly Components",
5
5
  "author": "Guy Bedford",
6
6
  "bin": {
@@ -18,7 +18,7 @@
18
18
  },
19
19
  "type": "module",
20
20
  "dependencies": {
21
- "@bytecodealliance/preview2-shim": "0.0.20",
21
+ "@bytecodealliance/preview2-shim": "0.0.21",
22
22
  "binaryen": "^111.0.0",
23
23
  "chalk-template": "^0.4.0",
24
24
  "commander": "^9.4.1",
@@ -27,7 +27,7 @@
27
27
  "terser": "^5.16.1"
28
28
  },
29
29
  "devDependencies": {
30
- "@bytecodealliance/componentize-js": "^0.4.0",
30
+ "@bytecodealliance/componentize-js": "^0.4.1",
31
31
  "@types/node": "^18.11.17",
32
32
  "@typescript-eslint/eslint-plugin": "^5.41.0",
33
33
  "@typescript-eslint/parser": "^5.41.0",
package/src/cmd/run.js CHANGED
@@ -54,6 +54,7 @@ export async function run (componentPath, args) {
54
54
  console.error('Not a valid command component to execute, make sure it was built to a command adapter and with the same version.');
55
55
  }
56
56
  try {
57
+ process.argv[1] = "${name}";
57
58
  const mod = await import('./${name}.js');
58
59
  if (!mod.run || !mod.run.run) {
59
60
  logInvalidCommand();
package/src/jco.js CHANGED
@@ -11,7 +11,7 @@ program
11
11
  .name('jco')
12
12
  .description(c`{bold jco - WebAssembly JS Component Tools}\n JS Component Transpilation Bindgen & Wasm Tools for JS`)
13
13
  .usage('<command> [options]')
14
- .version('0.13.2');
14
+ .version('0.13.3');
15
15
 
16
16
  function myParseInt(value) {
17
17
  return parseInt(value, 10);