eoas 1.0.35 ā 1.0.37
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/commands/publish.js +14 -9
- package/package.json +1 -1
package/dist/commands/publish.js
CHANGED
|
@@ -110,7 +110,7 @@ class Publish extends core_1.Command {
|
|
|
110
110
|
log_1.default.error('Please run `eoas init` to setup the correct update url');
|
|
111
111
|
}
|
|
112
112
|
}
|
|
113
|
-
const runtimeSpinner = (0, ora_1.ora)('Resolving runtime version').start();
|
|
113
|
+
const runtimeSpinner = (0, ora_1.ora)('š Resolving runtime version...').start();
|
|
114
114
|
const runtimeVersions = [
|
|
115
115
|
...(!platform || platform === expoConfig_1.RequestedPlatform.All || platform === expoConfig_1.RequestedPlatform.Ios
|
|
116
116
|
? [
|
|
@@ -144,8 +144,8 @@ class Publish extends core_1.Command {
|
|
|
144
144
|
log_1.default.error('Could not resolve runtime versions for the requested platforms');
|
|
145
145
|
return;
|
|
146
146
|
}
|
|
147
|
-
runtimeSpinner.succeed('Runtime versions resolved');
|
|
148
|
-
const exportSpinner = (0, ora_1.ora)("Exporting project
|
|
147
|
+
runtimeSpinner.succeed('ā
Runtime versions resolved');
|
|
148
|
+
const exportSpinner = (0, ora_1.ora)("š¦ Exporting project files...").start();
|
|
149
149
|
try {
|
|
150
150
|
await (0, spawn_async_1.default)('rm', ['-rf', 'dist'], { cwd: projectDir });
|
|
151
151
|
const { stdout } = await (0, spawn_async_1.default)('npx', ['expo', 'export', '--output-dir', 'dist'], {
|
|
@@ -155,11 +155,11 @@ class Publish extends core_1.Command {
|
|
|
155
155
|
EXPO_NO_DOTENV: '1',
|
|
156
156
|
},
|
|
157
157
|
});
|
|
158
|
-
exportSpinner.succeed('Project exported successfully');
|
|
158
|
+
exportSpinner.succeed('š Project exported successfully');
|
|
159
159
|
log_1.default.withInfo(stdout);
|
|
160
160
|
}
|
|
161
161
|
catch {
|
|
162
|
-
exportSpinner.fail('Failed to export the project');
|
|
162
|
+
exportSpinner.fail('ā Failed to export the project');
|
|
163
163
|
}
|
|
164
164
|
const publicConfig = await (0, expoConfig_1.getPublicExpoConfigAsync)(projectDir, {
|
|
165
165
|
skipSDKVersionRequirement: true,
|
|
@@ -173,7 +173,7 @@ class Publish extends core_1.Command {
|
|
|
173
173
|
spaces: 2,
|
|
174
174
|
});
|
|
175
175
|
log_1.default.withInfo('expoConfig.json file created in dist directory');
|
|
176
|
-
const uploadFilesSpinner = (0, ora_1.ora)('Uploading files
|
|
176
|
+
const uploadFilesSpinner = (0, ora_1.ora)('š¤ Uploading files...').start();
|
|
177
177
|
const files = (0, assets_1.computeFilesRequests)(projectDir, platform || expoConfig_1.RequestedPlatform.All);
|
|
178
178
|
if (!files.length) {
|
|
179
179
|
uploadFilesSpinner.fail('No files to upload');
|
|
@@ -234,16 +234,21 @@ class Publish extends core_1.Command {
|
|
|
234
234
|
body: buffer,
|
|
235
235
|
});
|
|
236
236
|
if (!response.ok) {
|
|
237
|
-
log_1.default.error('
|
|
237
|
+
log_1.default.error('ā File upload failed', await response.text());
|
|
238
238
|
throw new Error('Failed to upload file');
|
|
239
239
|
}
|
|
240
240
|
file.close();
|
|
241
241
|
}));
|
|
242
|
-
uploadFilesSpinner.succeed('Files uploaded successfully');
|
|
242
|
+
uploadFilesSpinner.succeed('ā
Files uploaded successfully');
|
|
243
243
|
}
|
|
244
244
|
catch {
|
|
245
|
-
uploadFilesSpinner.fail('Failed to upload static files');
|
|
245
|
+
uploadFilesSpinner.fail('ā Failed to upload static files');
|
|
246
246
|
}
|
|
247
|
+
console.log(`\nā
Your update has been successfully pushed to ${updateUrl}`);
|
|
248
|
+
console.log(`š Channel: \`${channel}\``);
|
|
249
|
+
console.log(`šæ Branch: \`${branch}\``);
|
|
250
|
+
console.log(`ā³ Deployed at: \`${new Date().toUTCString()}\`\n`);
|
|
251
|
+
console.log('š„ Your users will receive the latest update automatically!');
|
|
247
252
|
}
|
|
248
253
|
}
|
|
249
254
|
exports.default = Publish;
|