@speedkit/cli 2.65.0 → 2.66.0-alpha.1

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,11 @@
1
+ # [2.66.0-alpha.1](https://gitlab.orestes.info/baqend/speed-kit-cli/compare/v2.65.0...v2.66.0-alpha.1) (2024-11-01)
2
+
3
+
4
+ ### Features
5
+
6
+ * allow prerelease from alpha and beta branch ([365e480](https://gitlab.orestes.info/baqend/speed-kit-cli/commit/365e480347a9efadc764a1aa6c907908259338d6))
7
+ * embed devtools ([def9d97](https://gitlab.orestes.info/baqend/speed-kit-cli/commit/def9d97f686b905e6db8d9db2df3510493bd00e2))
8
+
1
9
  # [2.65.0](https://gitlab.orestes.info/baqend/speed-kit-cli/compare/v2.64.0...v2.65.0) (2024-11-01)
2
10
 
3
11
 
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/2.65.0 linux-x64 node-v20.18.0
24
+ @speedkit/cli/2.66.0-alpha.1 linux-x64 node-v20.18.0
25
25
  $ sk --help [COMMAND]
26
26
  USAGE
27
27
  $ sk COMMAND
@@ -6,5 +6,6 @@ export declare class ExtensionValidator {
6
6
  private cli;
7
7
  constructor(cliConfig: UserCliConfig, cliBasePath: string, cli: CliServiceInterface);
8
8
  getValidBrowserExtensionPaths(): Promise<string[]>;
9
+ private loadEmbeddedDevtoolsExtension;
9
10
  private getManifestConfig;
10
11
  }
@@ -44,15 +44,29 @@ class ExtensionValidator {
44
44
  });
45
45
  validPaths.push(cleanedExtensionPath);
46
46
  }
47
+ if (addIncludedExtension) {
48
+ await this.loadEmbeddedDevtoolsExtension(validExtensions, validPaths);
49
+ }
47
50
  this.cli.endAction(cli_1.CliActionStatus.COMPLETED);
48
51
  if (validExtensions.length > 0) {
49
52
  this.cli.table(validExtensions, { name: {}, version: {}, path: {} });
50
53
  }
51
- if (addIncludedExtension) {
52
- validPaths.push(node_path_1.default.resolve(this.cliBasePath, "chrome-dist", "devtools"));
53
- }
54
54
  return validPaths;
55
55
  }
56
+ async loadEmbeddedDevtoolsExtension(validExtensions, validPaths) {
57
+ const defaultDevelopmentToolsExtensionPath = node_path_1.default.resolve(this.cliBasePath, "dist", "devtools");
58
+ const manifestConfigResult = await (0, safe_1.safe)(this.getManifestConfig(defaultDevelopmentToolsExtensionPath));
59
+ if (manifestConfigResult.success !== true) {
60
+ this.cli.writeError("could not find manifestFile for embedded extension");
61
+ return;
62
+ }
63
+ validExtensions.push({
64
+ path: defaultDevelopmentToolsExtensionPath,
65
+ name: manifestConfigResult.data.name + "[embedded]",
66
+ version: manifestConfigResult.data.version,
67
+ });
68
+ validPaths.push(defaultDevelopmentToolsExtensionPath);
69
+ }
56
70
  async getManifestConfig(cleanedExtensionPath) {
57
71
  const manifestPath = node_path_1.default.resolve(cleanedExtensionPath, "manifest.json");
58
72
  if (!(0, node_fs_1.existsSync)(manifestPath)) {
@@ -712,5 +712,5 @@
712
712
  ]
713
713
  }
714
714
  },
715
- "version": "2.65.0"
715
+ "version": "2.66.0-alpha.1"
716
716
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@speedkit/cli",
3
3
  "description": "Speed Kit CLI",
4
- "version": "2.65.0",
4
+ "version": "2.66.0-alpha.1",
5
5
  "author": {
6
6
  "name": "Baqend.com",
7
7
  "email": "info@baqend.com"