@swell/cli 2.0.13 → 2.0.14

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.
@@ -171,7 +171,8 @@ export class PushAppCommand extends RemoteAppCommand {
171
171
  this.error('App type not supported for storefront creation');
172
172
  }
173
173
  let name;
174
- if (hasOtherStorefronts) {
174
+ // Leave name blank when syncing theme app to avoid blocking push
175
+ if (hasOtherStorefronts && !this.themeSyncApp) {
175
176
  name = await input({
176
177
  default: this.app.name,
177
178
  message: 'Name your storefront',
@@ -475,7 +476,9 @@ export class PushAppCommand extends RemoteAppCommand {
475
476
  const storefronts = await this.getAllAppStorefronts({
476
477
  type: this.appType,
477
478
  });
478
- if (storefronts.count > 0) {
479
+ // Choose storefront if multiple storefronts exist
480
+ // Except if we are syncing a theme app, then force create new storefront if not found
481
+ if (storefronts.count > 0 && !this.themeSyncApp) {
479
482
  storefrontId = await select({
480
483
  choices: [
481
484
  ...storefronts.results.map((storefront) => ({
@@ -1891,5 +1891,5 @@
1891
1891
  ]
1892
1892
  }
1893
1893
  },
1894
- "version": "2.0.13"
1894
+ "version": "2.0.14"
1895
1895
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swell/cli",
3
- "version": "2.0.13",
3
+ "version": "2.0.14",
4
4
  "type": "module",
5
5
  "description": "Swell's command line interface/utility",
6
6
  "keywords": [