@swell/cli 2.0.2-alpha.0 → 2.0.3
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/lib/apps/index.js +6 -5
- package/dist/push-app-command.js +1 -12
- package/oclif.manifest.json +1 -1
- package/package.json +1 -1
package/dist/lib/apps/index.js
CHANGED
|
@@ -249,15 +249,16 @@ function batchAppFilesByType(configs) {
|
|
|
249
249
|
];
|
|
250
250
|
const batches = [];
|
|
251
251
|
// eslint-disable-next-line guard-for-in
|
|
252
|
-
for (const type
|
|
253
|
-
const
|
|
254
|
-
const
|
|
255
|
-
const
|
|
252
|
+
for (const type in ConfigTypeBatchOrder) {
|
|
253
|
+
const configType = ConfigTypeBatchOrder[type];
|
|
254
|
+
const configsByType = sorted.filter((config) => config.type === configType);
|
|
255
|
+
const label = configType === ConfigType.FILE ? 'App files' : titleize(configType);
|
|
256
|
+
const concurrency = configType === ConfigType.NOTIFICATION || configType === ConfigType.ASSET
|
|
256
257
|
? 1
|
|
257
258
|
: PUSH_CONCURRENCY;
|
|
258
259
|
batches.push({
|
|
259
260
|
configs: configsByType,
|
|
260
|
-
type,
|
|
261
|
+
type: configType,
|
|
261
262
|
label,
|
|
262
263
|
concurrency,
|
|
263
264
|
});
|
package/dist/push-app-command.js
CHANGED
|
@@ -242,19 +242,8 @@ export class PushAppCommand extends RemoteAppCommand {
|
|
|
242
242
|
this.app = app;
|
|
243
243
|
return true;
|
|
244
244
|
}
|
|
245
|
-
// If app exists but owned by another client,
|
|
245
|
+
// If app exists but owned by another client, create a new instance
|
|
246
246
|
if (app?.client_id && app.client_id !== currentStore) {
|
|
247
|
-
// Themes do not confirm dev version in another instance
|
|
248
|
-
if (!isTheme && !confirmExistingApp?.id) {
|
|
249
|
-
const otherAppName = app?.name || this.swellConfig.get('name');
|
|
250
|
-
const confirmPushNew = await confirm({
|
|
251
|
-
default: false,
|
|
252
|
-
message: `${style.appConfigValue(otherAppName)} has a dev version in another environment. Do you want to create a new development instance in ${style.storeId(currentStore)}?`,
|
|
253
|
-
});
|
|
254
|
-
if (!confirmPushNew) {
|
|
255
|
-
return false;
|
|
256
|
-
}
|
|
257
|
-
}
|
|
258
247
|
// Create a new app
|
|
259
248
|
this.app = await this.getCreateUpdateApp();
|
|
260
249
|
if (!this.app) {
|
package/oclif.manifest.json
CHANGED