@speedkit/cli 3.4.3 → 3.5.0

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/CHANGELOG.md CHANGED
@@ -1,3 +1,15 @@
1
+ # [3.5.0](https://gitlab.orestes.info/baqend/speed-kit-cli/compare/v3.4.3...v3.5.0) (2025-08-20)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * get chromeVersionOnWindows ([453ee15](https://gitlab.orestes.info/baqend/speed-kit-cli/commit/453ee15122c37b945e2d05af9c445b01d0a421b0))
7
+
8
+
9
+ ### Features
10
+
11
+ * run releaseOnBetaBranch ([df320ef](https://gitlab.orestes.info/baqend/speed-kit-cli/commit/df320efd2d6bfe59642d4e24047521d05795124a))
12
+
1
13
  ## [3.4.3](https://gitlab.orestes.info/baqend/speed-kit-cli/compare/v3.4.2...v3.4.3) (2025-08-19)
2
14
 
3
15
 
package/README.md CHANGED
@@ -21,7 +21,7 @@ $ npm install -g @speedkit/cli
21
21
  $ sk COMMAND
22
22
  running command...
23
23
  $ sk (--version)
24
- @speedkit/cli/3.4.3 linux-x64 node-v20.19.4
24
+ @speedkit/cli/3.5.0 linux-x64 node-v20.19.4
25
25
  $ sk --help [COMMAND]
26
26
  USAGE
27
27
  $ sk COMMAND
@@ -1,6 +1,7 @@
1
1
  import { table } from "@oclif/core/lib/cli-ux/styled/table";
2
2
  import { Options } from "cli-progress";
3
3
  import chalk from "chalk";
4
+ import { ExecSyncOptions } from "node:child_process";
4
5
  export declare class CliContext {
5
6
  readonly quiet: boolean;
6
7
  constructor(quiet?: boolean);
@@ -35,5 +36,5 @@ export interface CliServiceInterface {
35
36
  writeError(message: string, buffered?: boolean): void;
36
37
  writeSuccess(message: string, buffered?: boolean): void;
37
38
  writeWarning(message: string, buffered?: boolean): void;
38
- execSync(command: string, arguments_: string[]): string;
39
+ execSync(command: string, options?: ExecSyncOptions): string;
39
40
  }
@@ -2,6 +2,7 @@ import chalk from "chalk";
2
2
  import { table } from "@oclif/core/lib/cli-ux/styled/table";
3
3
  import { Options } from "cli-progress";
4
4
  import { CliActionStatus, CliServiceInterface } from "./cli-service-model";
5
+ import { ExecSyncOptions } from "node:child_process";
5
6
  export declare class CliService implements CliServiceInterface {
6
7
  readonly quiet: boolean;
7
8
  style: chalk.Chalk;
@@ -30,6 +31,6 @@ export declare class CliService implements CliServiceInterface {
30
31
  writeError(message: string, buffered?: boolean): void;
31
32
  writeSuccess(message: string, buffered?: boolean): void;
32
33
  writeWarning(message: string, buffered?: boolean): void;
33
- execSync(command: string, arguments_?: string[]): string;
34
+ execSync(command: string, options?: ExecSyncOptions): string;
34
35
  private getFormattedMessage;
35
36
  }
@@ -161,15 +161,12 @@ class CliService {
161
161
  }
162
162
  this.write(this.style.yellow(message));
163
163
  }
164
- execSync(command, arguments_) {
164
+ execSync(command, options) {
165
165
  const result = (0, safe_1.safe)(() => {
166
- return (0, node_child_process_1.execSync)(`${command} ${arguments_.join(" ")}`).toString();
166
+ return (0, node_child_process_1.execSync)(`${command}`, options).toString();
167
167
  });
168
168
  if (result.success !== true) {
169
- throw new application_error_1.default(result.error, [
170
- `running ${command}`,
171
- `with arguments ${arguments_.join(" ")}`,
172
- ]);
169
+ throw new application_error_1.default(result.error, [`running ${command}`]);
173
170
  }
174
171
  return result.data;
175
172
  }
@@ -55,7 +55,13 @@ class ExecutableValidator {
55
55
  return this.getCurrentBrowserVersion();
56
56
  }
57
57
  getCurrentBrowserVersion() {
58
- return this.cli.execSync(`"${this.userConfig.chromePath}"`, ["--version"]);
58
+ // on windows executing chrome to gather the version will spawn a chromeProcess
59
+ // so we use a powershell instead
60
+ if (this.userConfig.runtimeConfig.windows) {
61
+ return this.cli.execSync(`(Get-Item '${this.userConfig.chromePath}').VersionInfo.FileVersion`, { shell: "powershell.exe" });
62
+ // return this.userConfig.chromePath;
63
+ }
64
+ return this.cli.execSync(`"${this.userConfig.chromePath}" --version`);
59
65
  }
60
66
  getExecutablePathFromPuppeteer() {
61
67
  const puppeteerCache = new browsers_2.Cache(this.userConfig.tempFolder);
@@ -732,5 +732,5 @@
732
732
  ]
733
733
  }
734
734
  },
735
- "version": "3.4.3"
735
+ "version": "3.5.0"
736
736
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@speedkit/cli",
3
3
  "description": "Speed Kit CLI",
4
- "version": "3.4.3",
4
+ "version": "3.5.0",
5
5
  "author": {
6
6
  "name": "Baqend.com",
7
7
  "email": "info@baqend.com"