genie-setup 1.0.6 → 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 +11 -5
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -54,16 +54,22 @@ 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
- // ✨ THE MISSING MAGIC: Compile the code before linking!
72
+ // ✨ Compile the code before linking!
67
73
  console.log(`\n🏗️ Building GENIE Core...`);
68
74
  run('pnpm run build');
69
75
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "genie-setup",
3
- "version": "1.0.6",
3
+ "version": "1.0.8",
4
4
  "description": "Universal installer for GENIE",
5
5
  "main": "index.js",
6
6
  "bin": {