@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
|
-
|
|
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
|
-
|
|
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.`);
|
package/dist/push-app-command.js
CHANGED
|
@@ -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
|
-
|
|
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' &&
|
package/oclif.manifest.json
CHANGED