idea-manager 0.8.3 → 0.8.4

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/package.json +1 -1
  2. package/src/cli.ts +11 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "idea-manager",
3
- "version": "0.8.3",
3
+ "version": "0.8.4",
4
4
  "description": "AI 기반 브레인스토밍 → 구조화 → 프롬프트 생성 도구. MCP Server 내장.",
5
5
  "keywords": [
6
6
  "brainstorm",
package/src/cli.ts CHANGED
@@ -64,11 +64,19 @@ program
64
64
  console.log(`\n IM - Idea Manager v2`);
65
65
  console.log(` Starting on http://localhost:${port}\n`);
66
66
 
67
- const nextBin = path.join(PKG_ROOT, 'node_modules', '.bin', 'next');
68
- const child = spawn(nextBin, ['dev', '-p', port], {
67
+ // Resolve next CLI directly — avoids .bin symlink issues on Windows
68
+ // and npm global install hoisting issues
69
+ let nextCli: string;
70
+ try {
71
+ nextCli = require.resolve('next/dist/bin/next', { paths: [PKG_ROOT] });
72
+ } catch {
73
+ // Fallback: try to find next package manually
74
+ nextCli = path.join(PKG_ROOT, 'node_modules', 'next', 'dist', 'bin', 'next');
75
+ }
76
+
77
+ const child = spawn(process.execPath, [nextCli, 'dev', '-p', port], {
69
78
  cwd: PKG_ROOT,
70
79
  stdio: 'inherit',
71
- shell: true,
72
80
  env: { ...process.env, NODE_ENV: 'development' },
73
81
  });
74
82