@shareai-lab/kode 1.0.97 → 1.0.98

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.
Files changed (2) hide show
  1. package/cli.js +1 -3
  2. package/package.json +1 -1
package/cli.js CHANGED
@@ -57,10 +57,8 @@ function runWithTsxImport() {
57
57
  importArg = pathToFileURL(tsxImportPath).href
58
58
  }
59
59
  } catch {}
60
- const { pathToFileURL } = require('node:url')
61
- const cliUrl = pathToFileURL(cliPath).href
62
60
  const baseArgs = ['--no-warnings=ExperimentalWarning', '--enable-source-maps']
63
- const child = spawn(process.execPath, [...baseArgs, '--import', importArg, cliUrl, ...args], {
61
+ const child = spawn(process.execPath, [...baseArgs, '--import', importArg, cliPath, ...args], {
64
62
  stdio: 'inherit',
65
63
  env: { ...process.env, YOGA_WASM_PATH: path.join(__dirname, 'yoga.wasm') },
66
64
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shareai-lab/kode",
3
- "version": "1.0.97",
3
+ "version": "1.0.98",
4
4
  "bin": {
5
5
  "kode": "cli.js",
6
6
  "kwa": "cli.js",