derolicia 1.0.2 → 1.0.3

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/bin/postinstall.js +38 -0
  2. package/package.json +3 -3
@@ -0,0 +1,38 @@
1
+ 'use strict';
2
+
3
+ /**
4
+ * Dera postinstall script
5
+ * Cross-platform (Windows + Unix) — no shebang, no shell operators
6
+ *
7
+ * Runs the installation wizard after "npm install derolicia"
8
+ * Silently skips if wizard is not found or errors occur
9
+ */
10
+
11
+ const path = require('path');
12
+ const fs = require('fs');
13
+
14
+ // Skip in CI environments
15
+ if (process.env.CI === 'true' || process.env.GITHUB_ACTIONS === 'true') {
16
+ process.exit(0);
17
+ }
18
+
19
+ const wizardPath = path.join(__dirname, '..', 'packages', 'installer', 'src', 'wizard', 'index.js');
20
+ const legacyPath = path.join(__dirname, 'dera-init.js');
21
+
22
+ async function run() {
23
+ try {
24
+ if (fs.existsSync(wizardPath)) {
25
+ const { runWizard } = require(wizardPath);
26
+ await runWizard({ quiet: false });
27
+ } else if (fs.existsSync(legacyPath)) {
28
+ require(legacyPath);
29
+ } else {
30
+ console.log('\n✅ derolicia installed! Run "npx derolicia" to set up your project.\n');
31
+ }
32
+ } catch (err) {
33
+ // Never block install due to wizard errors
34
+ console.log('\n✅ derolicia installed! Run "npx derolicia" to set up your project.\n');
35
+ }
36
+ }
37
+
38
+ run();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "derolicia",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "Dera: AI-Orchestrated System for Full Stack Development - Core Framework",
5
5
  "bin": {
6
6
  "derolicia": "bin/dera.js",
@@ -78,8 +78,8 @@
78
78
  "manifest:ensure": "node scripts/ensure-manifest.js",
79
79
  "sync:ide:cursor": "node .dera-core/infrastructure/scripts/ide-sync/index.js sync --ide cursor",
80
80
  "validate:publish": "node bin/utils/validate-publish.js",
81
- "postinstall": "node bin/dera.js install --quiet || true",
82
- "prepublishOnly": "echo 'Publishing derolicia v1.0.1'",
81
+ "postinstall": "node bin/postinstall.js",
82
+ "prepublishOnly": "echo 'Publishing derolicia v1.0.3'",
83
83
  "prepare": "echo 'ok'"
84
84
  },
85
85
  "dependencies": {