movehat 0.0.1-alpha.0 → 0.0.2-alpha.0

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/bin/movehat.js CHANGED
@@ -1,21 +1,13 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- import { spawn } from 'child_process';
4
3
  import { fileURLToPath } from 'url';
5
4
  import { dirname, join } from 'path';
6
5
 
7
6
  const __filename = fileURLToPath(import.meta.url);
8
7
  const __dirname = dirname(__filename);
9
8
 
10
- // Get the path to the TypeScript CLI file
11
- const cliPath = join(__dirname, '..', 'src', 'cli.ts');
9
+ // Get the path to the compiled CLI file
10
+ const cliPath = join(__dirname, '..', 'dist', 'cli.js');
12
11
 
13
- // Execute the CLI with tsx
14
- const child = spawn('tsx', [cliPath, ...process.argv.slice(2)], {
15
- stdio: 'inherit',
16
- shell: false,
17
- });
18
-
19
- child.on('exit', (code) => {
20
- process.exit(code || 0);
21
- });
12
+ // Import and run the CLI
13
+ await import(cliPath);
@@ -8,7 +8,7 @@
8
8
  "deploy": "movehat run scripts/deploy-counter.ts"
9
9
  },
10
10
  "dependencies": {
11
- "movehat": "^0.0.1-alpha.0",
11
+ "movehat": "^v0.0.2-alpha.0",
12
12
  "@aptos-labs/ts-sdk": "^5.1.5",
13
13
  "dotenv": "^17.2.3"
14
14
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "movehat",
3
- "version": "0.0.1-alpha.0",
3
+ "version": "0.0.2-alpha.0",
4
4
  "type": "module",
5
5
  "description": "Hardhat-like development framework for Movement L1 and Aptos Move smart contracts",
6
6
  "bin": {
@@ -8,7 +8,7 @@
8
8
  "deploy": "movehat run scripts/deploy-counter.ts"
9
9
  },
10
10
  "dependencies": {
11
- "movehat": "^0.0.1-alpha.0",
11
+ "movehat": "^v0.0.2-alpha.0",
12
12
  "@aptos-labs/ts-sdk": "^5.1.5",
13
13
  "dotenv": "^17.2.3"
14
14
  },