reg-cli 0.0.0-experimental-wasm3 → 0.0.0-experimental-wasm4

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/dist/index.cjs CHANGED
@@ -63,7 +63,7 @@ const run = (argv) => {
63
63
  return emitter;
64
64
  };
65
65
  const compare = (input) => {
66
- const args = Object.entries(input).flatMap(([k, v]) => [k, String(v)]);
66
+ const args = Object.entries(input).flatMap(([k, v]) => [`--${k}`, String(v)]);
67
67
  return run(args);
68
68
  };
69
69
 
package/dist/index.mjs CHANGED
@@ -57,7 +57,7 @@ const run = (argv) => {
57
57
  return emitter;
58
58
  };
59
59
  const compare = (input) => {
60
- const args = Object.entries(input).flatMap(([k, v]) => [k, String(v)]);
60
+ const args = Object.entries(input).flatMap(([k, v]) => [`--${k}`, String(v)]);
61
61
  return run(args);
62
62
  };
63
63
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "reg-cli",
3
- "version": "0.0.0-experimental-wasm3",
3
+ "version": "0.0.0-experimental-wasm4",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "start": "node ./dist/cli.mjs",
@@ -24,7 +24,8 @@
24
24
  "reg-cli": "./dist/cli.mjs"
25
25
  },
26
26
  "scripts": {
27
- "build": "unbuild && cp reg.wasm ./dist/shared/reg.wasm"
27
+ "build": "unbuild && cp reg.wasm ./dist/shared/reg.wasm",
28
+ "prepublishOnly": "npm run build"
28
29
  },
29
30
  "keywords": [],
30
31
  "author": "bokuweb",