@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.
- package/dist/push-app-command.js +5 -2
- package/oclif.manifest.json +1 -1
- package/package.json +1 -1
package/dist/push-app-command.js
CHANGED
|
@@ -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
|
-
|
|
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
|
|
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) => ({
|
package/oclif.manifest.json
CHANGED