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.
Files changed (2) hide show
  1. package/dist/cli/index.js +12 -10
  2. 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.2");
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", "@flowstride", "pro");
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 @flowstride/pro...").start();
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
- @flowstride:registry=https://npm.pkg.github.com
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
- // C. Run the silent install
130
- (0, child_process_1.execSync)("npm install @flowstride/pro --save-dev", {
131
- stdio: "ignore",
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
- installSpinner.succeed(chalk_1.default.green("Enterprise Engine installed successfully!"));
136
+ console.log(chalk_1.default.green("\n✅ Enterprise Engine installed successfully!"));
135
137
  }
136
138
  catch (installError) {
137
- installSpinner.fail(chalk_1.default.red("Failed to install the Enterprise Engine automatically."));
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 @flowstride/pro --save-dev' manually later.`));
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flowstride",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "An opensource flowfirst test automation framework",
5
5
  "workspaces": [
6
6
  "packages/flowstride_report"