@superblocksteam/cli 1.1.0 → 1.1.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/README.md CHANGED
@@ -12,7 +12,7 @@ $ npm install -g @superblocksteam/cli
12
12
  $ superblocks COMMAND
13
13
  running command...
14
14
  $ superblocks (--version)
15
- @superblocksteam/cli/1.1.0 linux-x64 node-v18.18.0
15
+ @superblocksteam/cli/1.1.1 linux-x64 node-v18.18.2
16
16
  $ superblocks --help [COMMAND]
17
17
  USAGE
18
18
  $ superblocks COMMAND
@@ -7,7 +7,7 @@
7
7
  "lint:fix": "npx eslint . --fix"
8
8
  },
9
9
  "dependencies": {
10
- "@superblocksteam/custom-components": "1.1.0",
10
+ "@superblocksteam/custom-components": "1.1.1",
11
11
  "react": "^18",
12
12
  "react-dom": "^18"
13
13
  },
@@ -84,7 +84,7 @@ class Watch extends authenticated_command_1.AuthenticatedApplicationCommand {
84
84
  plugins: [
85
85
  healthEndpointMiddleware(),
86
86
  (0, plugin_react_1.default)(),
87
- (0, vite_custom_component_reload_plugin_1.appendHotReloadEventPlugin)(),
87
+ (0, vite_custom_component_reload_plugin_1.appendHotReloadEventPlugin)(version_control_1.getCurrentGitBranchIfGit),
88
88
  (0, react_shim_1.injectReactVersionsPlugin)(),
89
89
  ],
90
90
  });
@@ -193,7 +193,8 @@ ${(0, colorette_1.cyan)("superblocks migrate")}`);
193
193
  core_1.ux.action.stop();
194
194
  try {
195
195
  core_1.ux.action.start("Registering components...");
196
- await this.getSdk().registerComponents(this.applicationConfig.id, configs, injectedHeaders);
196
+ const branch = await (0, version_control_1.getCurrentGitBranchIfGit)();
197
+ await this.getSdk().registerComponents(this.applicationConfig.id, configs, branch, injectedHeaders);
197
198
  core_1.ux.action.stop();
198
199
  }
199
200
  catch (e) {
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.1.0",
2
+ "version": "1.1.1",
3
3
  "commands": {
4
4
  "init": {
5
5
  "id": "init",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@superblocksteam/cli",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "Official Superblocks CLI",
5
5
  "bin": {
6
6
  "superblocks": "bin/run"
@@ -18,11 +18,11 @@
18
18
  "@oclif/core": "^2.11.7",
19
19
  "@oclif/plugin-help": "^5.2.16",
20
20
  "@oclif/plugin-plugins": "^3.1.10",
21
- "@superblocksteam/css-plugin": "1.1.0",
22
- "@superblocksteam/react-shim": "1.1.0",
23
- "@superblocksteam/sdk": "1.1.0",
24
- "@superblocksteam/util": "1.1.0",
25
- "@superblocksteam/vite-custom-component-reload-plugin": "1.1.0",
21
+ "@superblocksteam/css-plugin": "1.1.1",
22
+ "@superblocksteam/react-shim": "1.1.1",
23
+ "@superblocksteam/sdk": "1.1.1",
24
+ "@superblocksteam/util": "1.1.1",
25
+ "@superblocksteam/vite-custom-component-reload-plugin": "1.1.1",
26
26
  "@vitejs/plugin-react": "^4.0.4",
27
27
  "colorette": "^2.0.19",
28
28
  "enquirer": "^2.3.6",
@@ -42,7 +42,7 @@
42
42
  "@types/chai": "^4",
43
43
  "@types/fs-extra": "^11.0.1",
44
44
  "@types/mocha": "^9.0.0",
45
- "@types/node": "^16.18.38",
45
+ "@types/node": "^16.18.39",
46
46
  "@typescript-eslint/eslint-plugin": "^5.60.1",
47
47
  "@typescript-eslint/parser": "^5.60.1",
48
48
  "chai": "^4",