hyperterse 1.1.1 → 1.2.1

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/bin.mjs +11 -2
  2. package/package.json +1 -1
package/bin.mjs CHANGED
@@ -7,9 +7,11 @@
7
7
 
8
8
  import fs from 'fs';
9
9
  import path from 'path';
10
- import { execSync } from 'child_process';
10
+ import { spawnSync } from 'child_process';
11
11
  import { fileURLToPath } from 'url';
12
12
 
13
+ const argv = process.argv.slice(2);
14
+
13
15
  import { install } from './install.mjs';
14
16
 
15
17
  const __dirname = path.dirname(fileURLToPath(import.meta.url));
@@ -33,5 +35,12 @@ const binPath = path.join(__dirname, 'bin', process.platform === 'win32' ? 'hype
33
35
  }
34
36
  }
35
37
 
36
- execSync(binPath, { stdio: 'inherit' });
38
+ spawnSync(
39
+ binPath,
40
+ argv,
41
+ {
42
+ stdio: 'inherit',
43
+ shell: true
44
+ }
45
+ );
37
46
  })();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hyperterse",
3
- "version": "1.1.1",
3
+ "version": "1.2.1",
4
4
  "description": "A declarative interface to connect your database to your AI agents",
5
5
  "author": "Samrith Shankar <samrith@outlook.com>",
6
6
  "license": "Apache-2.0",