oneshot-stack-team 0.1.0 → 0.1.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.
@@ -3,13 +3,15 @@ import fs from 'node:fs/promises';
3
3
  import fsSync from 'node:fs';
4
4
  import path from 'node:path';
5
5
  import { spawnSync } from 'node:child_process';
6
+ import { createRequire } from 'node:module';
6
7
 
7
8
  const packageRoot = path.resolve(new URL('..', import.meta.url).pathname);
8
9
  const root = process.cwd();
9
10
  const command = process.argv[2] || 'install';
11
+ const require = createRequire(import.meta.url);
10
12
 
11
13
  function baseInstaller() {
12
- const installer = path.join(packageRoot, 'node_modules', 'oneshot-stack', 'bin', 'oneshot-stack.js');
14
+ const installer = require.resolve('oneshot-stack/bin/oneshot-stack.js', { paths: [packageRoot] });
13
15
  const result = spawnSync(process.execPath, [installer, 'install'], { cwd: root, stdio: 'inherit', env: process.env });
14
16
  if (result.status !== 0) throw new Error('Base OneShot installation failed.');
15
17
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oneshot-stack-team",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Team workflow bundle for OneShot Stack with review, testing, and security skills",
5
5
  "type": "module",
6
6
  "bin": {