@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.
@@ -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
- if (existingDevApp) {
209
- app = await this.handleRequestErrors(async () => this.api.put({ adminPath: `/apps/${existingDevApp.id}` }, { body }), () => spinner.fail('Error updating app.'));
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}...`);
@@ -1891,5 +1891,5 @@
1891
1891
  ]
1892
1892
  }
1893
1893
  },
1894
- "version": "2.0.18"
1894
+ "version": "2.0.19"
1895
1895
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swell/cli",
3
- "version": "2.0.18",
3
+ "version": "2.0.19",
4
4
  "type": "module",
5
5
  "description": "Swell's command line interface/utility",
6
6
  "keywords": [