@superblocksteam/cli 1.14.3 → 1.14.4

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.14.3 linux-x64 node-v20.19.4
15
+ @superblocksteam/cli/1.14.4 linux-x64 node-v20.19.5
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.14.3",
10
+ "@superblocksteam/custom-components": "1.14.4",
11
11
  "react": "^18",
12
12
  "react-dom": "^18"
13
13
  },
@@ -7,7 +7,7 @@ import { green, yellow } from "colorette";
7
7
  import { Listr } from "listr2";
8
8
  import { isEmpty } from "lodash-es";
9
9
  import { AuthenticatedCommand } from "../common/authenticated-command.mjs";
10
- import { atLeastOneSelection, isCI, MULTI_SELECT_PROMPT_HELP, } from "../common/version-control.mjs";
10
+ import { atLeastOneSelection, MULTI_SELECT_PROMPT_HELP, } from "../common/version-control.mjs";
11
11
  var DeploymentStatus;
12
12
  (function (DeploymentStatus) {
13
13
  DeploymentStatus["SUCCESS"] = "SUCCESS";
@@ -90,8 +90,8 @@ export default class Deploy extends AuthenticatedCommand {
90
90
  await this.validateGitSetup(resource.resourceType, resource.resourceId, ComponentEvent.DEPLOY);
91
91
  }
92
92
  catch (error) {
93
- if (isCI() && error instanceof ValidateGitSetupError) {
94
- this.log(`WARN: Failed to validate git setup for ${resourceTitle}. Skipping deploy for this resource.\n\n${error.message}.`);
93
+ if (error instanceof ValidateGitSetupError) {
94
+ this.log(`WARN: ${error.message}.`);
95
95
  ctx.resourceIdsToSkip.add(resource.resourceId);
96
96
  }
97
97
  else {
@@ -4,7 +4,7 @@ import { ValidateGitSetupError, } from "@superblocksteam/sdk";
4
4
  import { getSuperblocksMonorepoConfigJson, getSuperblocksResourceConfigIfExists, ComponentEvent, COMPONENT_EVENT_HEADER, NotFoundError, } from "@superblocksteam/util";
5
5
  import { Listr } from "listr2";
6
6
  import { AuthenticatedCommand } from "../common/authenticated-command.mjs";
7
- import { DEFAULT_BRANCH, FileStructureType, LATEST_EDITS_MODE, MULTI_SELECT_PROMPT_HELP, atLeastOneSelection, deleteResourcesAndUpdateRootConfig, getCurrentGitBranchIfGit, getFileStructureType, getMode, isCI, modeFlagValuesMap, writeMultiPageApplicationToDisk, writeResourceToDisk, } from "../common/version-control.mjs";
7
+ import { DEFAULT_BRANCH, FileStructureType, LATEST_EDITS_MODE, MULTI_SELECT_PROMPT_HELP, atLeastOneSelection, deleteResourcesAndUpdateRootConfig, getCurrentGitBranchIfGit, getFileStructureType, getMode, modeFlagValuesMap, writeMultiPageApplicationToDisk, writeResourceToDisk, } from "../common/version-control.mjs";
8
8
  export default class Pull extends AuthenticatedCommand {
9
9
  static description = "Download objects from Superblocks and save them locally";
10
10
  static examples = [
@@ -178,8 +178,8 @@ Would you like to also delete these resources from your filesystem?`,
178
178
  ctx.branchToPullFrom.set(resourceId, branchName);
179
179
  }
180
180
  catch (error) {
181
- if (isCI() && error instanceof ValidateGitSetupError) {
182
- this.log(`WARN: Failed to validate git setup for ${resourceTitle}. Skipping pull.\n\n${error.message}.`);
181
+ if (error instanceof ValidateGitSetupError) {
182
+ this.log(`WARN: ${error.message}.`);
183
183
  ctx.resourceIdsToSkip.add(resourceId);
184
184
  }
185
185
  else {
@@ -193,8 +193,8 @@ Would you like to also delete these resources from your filesystem?`,
193
193
  ctx.branchToPushTo.set(resourceId, branchName);
194
194
  }
195
195
  catch (error) {
196
- if (isCI() && error instanceof ValidateGitSetupError) {
197
- this.log(`WARN: Failed to validate git setup for ${resourceTitle}. Skipping push.\n\n${error.message}.`);
196
+ if (error instanceof ValidateGitSetupError) {
197
+ this.log(`WARN: ${error.message}.`);
198
198
  ctx.resourceIdsToSkip.add(resourceId);
199
199
  }
200
200
  else {
@@ -487,5 +487,5 @@
487
487
  ]
488
488
  }
489
489
  },
490
- "version": "1.14.3"
490
+ "version": "1.14.4"
491
491
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@superblocksteam/cli",
3
- "version": "1.14.3",
3
+ "version": "1.14.4",
4
4
  "description": "Official Superblocks CLI",
5
5
  "bin": {
6
6
  "superblocks": "./bin/run"
@@ -29,8 +29,8 @@
29
29
  "slugify": "^1.6.6",
30
30
  "vite": "^6.2.0",
31
31
  "yaml": "^2.6.1",
32
- "@superblocksteam/sdk": "1.14.3",
33
- "@superblocksteam/util": "1.14.3"
32
+ "@superblocksteam/sdk": "1.14.4",
33
+ "@superblocksteam/util": "1.14.4"
34
34
  },
35
35
  "devDependencies": {
36
36
  "@oclif/test": "^4.1.11",