genie-setup 1.0.5 → 1.0.8

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/index.js +14 -5
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -54,16 +54,25 @@ if (fs.existsSync(PROJECT_NAME)) {
54
54
  run(`git clone ${REPO_URL}`);
55
55
  }
56
56
 
57
- // 5. Navigate, Install, and Launch!
58
-
59
-
60
- console.log(`\nšŸ“¦ Installing GENIE dependencies...`);
57
+ // 5. Navigate, Configure Security, Install, and Launch!
61
58
  const projectPath = path.join(process.cwd(), PROJECT_NAME);
62
59
  process.chdir(projectPath);
63
60
 
61
+ // ✨ THE PNPM 11 FIX: Auto-approve build scripts for esbuild/turbo
62
+ console.log(`\nšŸ” Configuring PNPM security rules...`);
63
+ const workspaceFile = path.join(process.cwd(), 'pnpm-workspace.yaml');
64
+ if (fs.existsSync(workspaceFile)) {
65
+ // Append the security override so pnpm install doesn't block esbuild
66
+ fs.appendFileSync(workspaceFile, '\ndangerouslyAllowAllBuilds: true\n');
67
+ }
68
+
69
+ console.log(`\nšŸ“¦ Installing GENIE dependencies...`);
64
70
  run('pnpm install');
65
71
 
66
- // Link the CLI globally so the 'genie' command works everywhere
72
+ // ✨ Compile the code before linking!
73
+ console.log(`\nšŸ—ļø Building GENIE Core...`);
74
+ run('pnpm run build');
75
+
67
76
  console.log(`\nšŸ”— Linking GENIE CLI...`);
68
77
  run('npm link');
69
78
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "genie-setup",
3
- "version": "1.0.5",
3
+ "version": "1.0.8",
4
4
  "description": "Universal installer for GENIE",
5
5
  "main": "index.js",
6
6
  "bin": {