@swell/cli 2.0.18 → 2.0.19
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/remote-app-command.js +2 -17
- package/oclif.manifest.json +1 -1
- package/package.json +1 -1
|
@@ -194,24 +194,9 @@ export class RemoteAppCommand extends AppCommand {
|
|
|
194
194
|
const appLabel = this.app.type === 'theme' ? 'theme' : 'app';
|
|
195
195
|
let app = updateApp || {};
|
|
196
196
|
if (!app.id) {
|
|
197
|
-
// May already have a dev instance
|
|
198
|
-
let existingDevApp;
|
|
199
|
-
try {
|
|
200
|
-
existingDevApp = await this.api.get({
|
|
201
|
-
adminPath: `/apps/${this.swellConfig.store.id}`,
|
|
202
|
-
});
|
|
203
|
-
}
|
|
204
|
-
catch {
|
|
205
|
-
// noop
|
|
206
|
-
}
|
|
207
197
|
spinner.start(`Creating ${appLabel}...`);
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
}
|
|
211
|
-
else {
|
|
212
|
-
app = await this.handleRequestErrors(async () => this.api.post({ adminPath: '/apps' }, { body }), () => spinner.fail('Error creating app.'));
|
|
213
|
-
this.appCreated = true;
|
|
214
|
-
}
|
|
198
|
+
app = await this.handleRequestErrors(async () => this.api.post({ adminPath: '/apps' }, { body }), () => spinner.fail('Error creating app.'));
|
|
199
|
+
this.appCreated = true;
|
|
215
200
|
}
|
|
216
201
|
else if (app.id) {
|
|
217
202
|
spinner.start(`Updating ${appLabel}...`);
|
package/oclif.manifest.json
CHANGED