@superblocksteam/cli 1.7.0 → 1.8.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/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.7.0 linux-x64 node-v18.20.2
15
+ @superblocksteam/cli/1.8.0 linux-x64 node-v18.20.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.7.0",
10
+ "@superblocksteam/custom-components": "1.8.0",
11
11
  "react": "^18",
12
12
  "react-dom": "^18"
13
13
  },
@@ -209,16 +209,19 @@ Would you like to also delete these resources from your filesystem?`,
209
209
  (await this.getSdk().fetchCurrentUser()).flagBootstrap["server.multipage.enabled"]) {
210
210
  this.error(`Application files at ${resource.location} are in single page format, but the multi-page feature is enabled for your account. Please run \`superblocks migrate\` to convert your application to multi-page format and commit the changes before pushing.`);
211
211
  }
212
+ const localGitRepoState = await (0, version_control_1.getLocalGitRepoState)(ctx.localBranchName);
212
213
  const applicationConfig = fileStructureType === version_control_1.FileStructureType.SINGLE_PAGE
213
214
  ? {
214
215
  ...(await (0, version_control_1.readApplicationFromDisk)(superblocksRootPath, resource.location)),
215
216
  commitId: ctx.headCommitId,
216
217
  commitMessage: ctx.headCommitMessage,
218
+ gitState: localGitRepoState,
217
219
  }
218
220
  : {
219
221
  ...(await (0, version_control_1.readMultiPageApplicationFromDisk)(superblocksRootPath, resource.location)),
220
222
  commitId: ctx.headCommitId,
221
223
  commitMessage: ctx.headCommitMessage,
224
+ gitState: localGitRepoState,
222
225
  };
223
226
  task.title += `: read from disk`;
224
227
  try {
@@ -253,10 +256,12 @@ Would you like to also delete these resources from your filesystem?`,
253
256
  title: `Pushing workflow/scheduled job ${resource.location}...`,
254
257
  task: async (_ctx, task) => {
255
258
  var _a;
259
+ const localGitRepoState = await (0, version_control_1.getLocalGitRepoState)(ctx.localBranchName);
256
260
  const apiConfig = {
257
261
  ...(await (0, version_control_1.readApiFromDisk)(superblocksRootPath, resource.location)),
258
262
  commitId: ctx.headCommitId,
259
263
  commitMessage: ctx.headCommitMessage,
264
+ gitState: localGitRepoState,
260
265
  };
261
266
  task.title += `: read from disk`;
262
267
  try {
@@ -335,11 +340,12 @@ Would you like to also delete these resources from your filesystem?`,
335
340
  ? [choices[0].name]
336
341
  : await task.prompt([
337
342
  {
338
- type: "MultiSelect",
343
+ type: "AutoComplete",
339
344
  name: "resourceIdsToPush",
340
345
  message: `Select resources to push (${version_control_1.MULTI_SELECT_PROMPT_HELP})`,
341
346
  choices: choices,
342
347
  initial: initialSelections,
348
+ multiple: true,
343
349
  validate: version_control_1.atLeastOneSelection,
344
350
  prefix: "▸",
345
351
  indicator: "◉",
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.7.0",
2
+ "version": "1.8.0",
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.7.0",
3
+ "version": "1.8.0",
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.7.0",
22
- "@superblocksteam/react-shim": "1.7.0",
23
- "@superblocksteam/sdk": "1.7.0",
24
- "@superblocksteam/util": "1.7.0",
25
- "@superblocksteam/vite-custom-component-reload-plugin": "1.7.0",
21
+ "@superblocksteam/css-plugin": "1.8.0",
22
+ "@superblocksteam/react-shim": "1.8.0",
23
+ "@superblocksteam/sdk": "1.8.0",
24
+ "@superblocksteam/util": "1.8.0",
25
+ "@superblocksteam/vite-custom-component-reload-plugin": "1.8.0",
26
26
  "@vitejs/plugin-react": "^4.1.0",
27
27
  "colorette": "^2.0.19",
28
28
  "enquirer": "^2.3.6",