octo-dev 0.3.1 → 0.3.2

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/octo.js CHANGED
@@ -1,13 +1,20 @@
1
1
  #!/usr/bin/env node
2
2
  import { execFileSync } from 'node:child_process';
3
- import { fileURLToPath } from 'node:url';
3
+ import { fileURLToPath, pathToFileURL } from 'node:url';
4
4
  import { resolve, dirname } from 'node:path';
5
+ import { createRequire } from 'node:module';
5
6
 
6
7
  const __dirname = dirname(fileURLToPath(import.meta.url));
8
+ const require = createRequire(import.meta.url);
9
+
10
+ // Resolve tsx ESM loader relative to this package's node_modules
11
+ const tsxEsmPath = require.resolve('tsx/esm');
12
+ const tsxImportUrl = pathToFileURL(tsxEsmPath).href;
13
+
7
14
  const entry = resolve(__dirname, '..', 'src', 'cli', 'index.ts');
8
15
 
9
16
  try {
10
- execFileSync('node', ['--import', 'tsx', entry, ...process.argv.slice(2)], {
17
+ execFileSync('node', ['--import', tsxImportUrl, entry, ...process.argv.slice(2)], {
11
18
  stdio: 'inherit',
12
19
  env: process.env,
13
20
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "octo-dev",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "description": "CLI for monorepo build orchestration, semantic versioning, and local infrastructure management",
5
5
  "type": "module",
6
6
  "license": "MIT",
package/src/cli/index.ts CHANGED
@@ -11,7 +11,7 @@ const program = new Command();
11
11
  program
12
12
  .name('octo')
13
13
  .description('Monorepo build orchestration, versioning, and infrastructure CLI')
14
- .version('0.1.0');
14
+ .version('0.3.1');
15
15
 
16
16
  program
17
17
  .command('init')