@shoper/cli 0.5.1-1 → 0.5.1-2

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.
@@ -25,6 +25,7 @@ import { SHOPER_THEME_METADATA_DIR } from '../../constants/directory_contstants.
25
25
  import { THEME_FILES_STRUCTURE_FILE_NAME } from '../../features/theme/theme_constants.js';
26
26
  import { ThemeError } from '../ui/theme_error.js';
27
27
  import { ThemeUnpermittedActionsError } from './ui/theme_unpermitted_actions_error.js';
28
+ import { promptConfirmation } from '../../../ui/prompts/prompt_confirmation.js';
28
29
  export class ThemePushCommand extends BaseThemeCommand {
29
30
  static summary = 'Uploads your local theme files to the store and overwrites the current version of the theme in your store.';
30
31
  static description = 'Check your local changes before pushing.\n\nYou must run this command from a specific theme directory (ID not needed).';
@@ -102,10 +103,12 @@ export class ThemePushCommand extends BaseThemeCommand {
102
103
  themeFilesUploadApi
103
104
  });
104
105
  spinner.stop();
106
+ await promptConfirmation('jolo');
105
107
  renderOnce(React.createElement(ThemePushedSuccess, { themeName: await ThemeInfoUtils.getThemeName(executionContext.themeRootDir) }));
106
108
  }
107
109
  catch (err) {
108
110
  spinner?.stop();
111
+ await promptConfirmation('jolo');
109
112
  renderOnce(React.createElement(ThemeError, { err: err, executionContext: executionContext }));
110
113
  }
111
114
  }
@@ -60,8 +60,9 @@ export class ThemeFilesStructureUtils {
60
60
  /*
61
61
  * Brzydki fix, poprawione w partial push na ładniej
62
62
  */
63
+ console.log('mappedFilesRecords', mappedFilesRecords);
63
64
  if (!mappedFilesRecords['settings/thumbnail.jpg']) {
64
- mappedFilesRecords['settings/thumbnail.jpg'] = 'null';
65
+ mappedFilesRecords['settings/thumbnail.jpg'] = null;
65
66
  }
66
67
  return mappedFilesRecords;
67
68
  }
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@shoper/cli",
3
3
  "packageManager": "yarn@3.2.0",
4
4
  "sideEffects": false,
5
- "version": "0.5.1-1",
5
+ "version": "0.5.1-2",
6
6
  "description": "CLI tool for Shoper",
7
7
  "author": "Joanna Firek",
8
8
  "license": "MIT",