@swell/cli 2.0.6 → 2.0.8

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.
@@ -92,11 +92,16 @@ behavior by using the --no-git-tag option.`;
92
92
  this.log(`${style.appConfigValue(this.app.name)} latest remote version is ${style.appConfigValue(latestVersion.version)}.`);
93
93
  }
94
94
  else {
95
- this.error(`${style.appConfigValue(this.app.name)} has not been versioned yet.`);
95
+ nextVersion = remoteVersion;
96
+ if (!nextVersion) {
97
+ this.error(`${style.appConfigValue(this.app.name)} has not been versioned yet.`);
98
+ }
96
99
  }
97
100
  return;
98
101
  }
99
- nextVersion = this.validateAndComputeVersion(nextVersion, remoteVersion);
102
+ else {
103
+ nextVersion = this.validateAndComputeVersion(nextVersion, remoteVersion);
104
+ }
100
105
  await this.pushAppConfigs();
101
106
  await this.deployAppFrontend(false, false);
102
107
  if (!message) {
@@ -123,7 +128,7 @@ behavior by using the --no-git-tag option.`;
123
128
  await this.gitTag(nextVersion);
124
129
  }
125
130
  catch (error) {
126
- spinner.fail(error.message);
131
+ spinner.fail(error.stderr || error.message);
127
132
  return;
128
133
  }
129
134
  spinner.succeed(`${style.appConfigValue(this.app.name)} version ${nextVersion} created.`);
@@ -110,7 +110,8 @@ export class PushAppCommand extends RemoteAppCommand {
110
110
  if (this.app.type === 'theme') {
111
111
  themeAppId = this.app.id;
112
112
  const storefrontApps = await this.handleRequestErrors(async () => this.api.get({
113
- adminPath: `/apps?type=storefront&kind=shop`,
113
+ // TODO: improve this filter query
114
+ adminPath: `/apps?type=storefront&$or[0][kind]=shop&$or[1][kind]=`,
114
115
  }));
115
116
  const compatibleStorefrontApps = storefrontApps.results.filter((app) => app.installed &&
116
117
  app.storefront?.theme?.provider === 'app' &&
@@ -1835,5 +1835,5 @@
1835
1835
  ]
1836
1836
  }
1837
1837
  },
1838
- "version": "2.0.6"
1838
+ "version": "2.0.8"
1839
1839
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swell/cli",
3
- "version": "2.0.6",
3
+ "version": "2.0.8",
4
4
  "type": "module",
5
5
  "description": "Swell's command line interface/utility",
6
6
  "keywords": [