wogiflow 1.0.8 → 1.0.9
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.
- package/package.json +1 -1
- package/scripts/postinstall.js +16 -13
package/package.json
CHANGED
package/scripts/postinstall.js
CHANGED
|
@@ -81,26 +81,29 @@ async function main() {
|
|
|
81
81
|
|
|
82
82
|
// Already initialized - short message
|
|
83
83
|
if (isAlreadyInitialized()) {
|
|
84
|
-
|
|
84
|
+
// Use stderr - npm suppresses stdout from postinstall
|
|
85
|
+
process.stderr.write('\x1b[36mWogiFlow:\x1b[0m Already initialized. Run \x1b[33mnpx flow status\x1b[0m to see project state.\n');
|
|
85
86
|
return;
|
|
86
87
|
}
|
|
87
88
|
|
|
88
|
-
// Show setup instructions (
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
89
|
+
// Show setup instructions using stderr (npm suppresses stdout from postinstall)
|
|
90
|
+
const msg = `
|
|
91
|
+
\x1b[36m╔════════════════════════════════════════════════════════════╗\x1b[0m
|
|
92
|
+
\x1b[36m║\x1b[0m \x1b[1mWogiFlow installed successfully!\x1b[0m \x1b[36m║\x1b[0m
|
|
93
|
+
\x1b[36m╚════════════════════════════════════════════════════════════╝\x1b[0m
|
|
94
|
+
|
|
95
|
+
\x1b[33mNext step:\x1b[0m Run the setup wizard:
|
|
96
|
+
|
|
97
|
+
\x1b[36mnpx flow onboard\x1b[0m \x1b[2m# For existing projects (recommended)\x1b[0m
|
|
98
|
+
\x1b[36mnpx flow init\x1b[0m \x1b[2m# For new projects\x1b[0m
|
|
99
|
+
|
|
100
|
+
`;
|
|
101
|
+
process.stderr.write(msg);
|
|
99
102
|
}
|
|
100
103
|
|
|
101
104
|
// Run
|
|
102
105
|
main().catch((err) => {
|
|
103
106
|
// Don't fail npm install on postinstall errors
|
|
104
|
-
|
|
107
|
+
process.stderr.write(`\x1b[33mWogiFlow postinstall warning:\x1b[0m ${err.message}\n`);
|
|
105
108
|
createMinimalStructure();
|
|
106
109
|
});
|