@shareai-lab/kode 1.1.10 → 1.1.11

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 +8 -2
  2. package/package.json +1 -1
package/cli.js CHANGED
@@ -39,7 +39,10 @@ function runWithNode() {
39
39
  : path.join(binDir, 'tsx')
40
40
 
41
41
  const runPathTsx = () => {
42
- const child2 = spawn('tsx', [cliPath, ...args], {
42
+ const tsxArgs = process.platform === 'win32'
43
+ ? ['--tsconfig-raw', '{"compilerOptions":{"module":"ESNext"}}', cliPath, ...args]
44
+ : [cliPath, ...args];
45
+ const child2 = spawn('tsx', tsxArgs, {
43
46
  stdio: 'inherit',
44
47
  shell: process.platform === 'win32',
45
48
  env: { ...process.env, YOGA_WASM_PATH: path.join(__dirname, 'yoga.wasm') },
@@ -52,7 +55,10 @@ function runWithNode() {
52
55
  child2.on('exit', (code2) => process.exit(code2 || 0))
53
56
  }
54
57
 
55
- const child = spawn(tsxPath, [cliPath, ...args], {
58
+ const tsxLocalArgs = process.platform === 'win32'
59
+ ? ['--tsconfig-raw', '{"compilerOptions":{"module":"ESNext"}}', cliPath, ...args]
60
+ : [cliPath, ...args];
61
+ const child = spawn(tsxPath, tsxLocalArgs, {
56
62
  stdio: 'inherit',
57
63
  shell: process.platform === 'win32',
58
64
  env: { ...process.env, YOGA_WASM_PATH: path.join(__dirname, 'yoga.wasm') },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shareai-lab/kode",
3
- "version": "1.1.10",
3
+ "version": "1.1.11",
4
4
  "bin": {
5
5
  "kode": "cli.js",
6
6
  "kwa": "cli.js",