flowstride 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.
- package/dist/cli/index.js +12 -10
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -52,7 +52,7 @@ const program = new commander_1.Command();
|
|
|
52
52
|
program
|
|
53
53
|
.name("flowstride")
|
|
54
54
|
.description("Flowstride: The Enterprise Flow-First Automation CLI")
|
|
55
|
-
.version("1.0.
|
|
55
|
+
.version("1.0.3");
|
|
56
56
|
program
|
|
57
57
|
.command("init")
|
|
58
58
|
.description("Initialise a new Flowstride workspace in the current directory")
|
|
@@ -104,7 +104,7 @@ program
|
|
|
104
104
|
if (data.githubToken) {
|
|
105
105
|
console.log(chalk_1.default.yellow(`\n⚙️ System Check: You have access to Enterprise features (AI Healing, Parallel Workers).`));
|
|
106
106
|
const localPackageJsonPath = path.join(process.cwd(), "package.json");
|
|
107
|
-
const nodeModulesPath = path.join(process.cwd(), "node_modules", "@
|
|
107
|
+
const nodeModulesPath = path.join(process.cwd(), "node_modules", "@heroamogs", "pro");
|
|
108
108
|
if (fs.existsSync(localPackageJsonPath) &&
|
|
109
109
|
!fs.existsSync(nodeModulesPath)) {
|
|
110
110
|
const installPro = await (0, prompts_1.confirm)({
|
|
@@ -112,7 +112,7 @@ program
|
|
|
112
112
|
default: true,
|
|
113
113
|
});
|
|
114
114
|
if (installPro) {
|
|
115
|
-
const installSpinner = (0, ora_1.default)("Configuring secure registry and installing @
|
|
115
|
+
const installSpinner = (0, ora_1.default)("Configuring secure registry and installing @heroamogs/pro...").start();
|
|
116
116
|
const npmrcPath = path.join(process.cwd(), ".npmrc");
|
|
117
117
|
let originalNpmrc = "";
|
|
118
118
|
try {
|
|
@@ -122,19 +122,21 @@ program
|
|
|
122
122
|
}
|
|
123
123
|
// B. Write the temporary GitHub configuration
|
|
124
124
|
const tempNpmrcContent = `
|
|
125
|
-
@
|
|
125
|
+
@heroamogs:registry=https://npm.pkg.github.com
|
|
126
126
|
//npm.pkg.github.com/:_authToken=${data.githubToken}
|
|
127
127
|
`;
|
|
128
128
|
fs.writeFileSync(npmrcPath, (originalNpmrc ? originalNpmrc + "\n" : "") + tempNpmrcContent);
|
|
129
|
-
//
|
|
130
|
-
(
|
|
131
|
-
|
|
129
|
+
installSpinner.stop(); // Stop spinner so we can see the exact npm logs
|
|
130
|
+
console.log(chalk_1.default.cyan("Starting npm install..."));
|
|
131
|
+
// C. Run the install WITH INHERIT to expose the exact error
|
|
132
|
+
(0, child_process_1.execSync)("npm install @heroamogs/pro --save-dev", {
|
|
133
|
+
stdio: "inherit",
|
|
132
134
|
cwd: process.cwd(),
|
|
133
135
|
});
|
|
134
|
-
|
|
136
|
+
console.log(chalk_1.default.green("\n✅ Enterprise Engine installed successfully!"));
|
|
135
137
|
}
|
|
136
138
|
catch (installError) {
|
|
137
|
-
|
|
139
|
+
console.log(chalk_1.default.red("\n✖ Failed to install the Enterprise Engine automatically."));
|
|
138
140
|
console.error(chalk_1.default.gray("You may need to install it manually."));
|
|
139
141
|
}
|
|
140
142
|
finally {
|
|
@@ -149,7 +151,7 @@ program
|
|
|
149
151
|
}
|
|
150
152
|
}
|
|
151
153
|
else {
|
|
152
|
-
console.log(chalk_1.default.gray(`\nSkipped installation. You can run 'npm install @
|
|
154
|
+
console.log(chalk_1.default.gray(`\nSkipped installation. You can run 'npm install @heroamogs/pro --save-dev' manually later.`));
|
|
153
155
|
}
|
|
154
156
|
}
|
|
155
157
|
}
|