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.
@@ -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's static files").start();
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 to the server').start();
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('Failed to upload file', await response.text());
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eoas",
3
- "version": "1.0.35",
3
+ "version": "1.0.37",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "build": "tsc --project tsconfig.json",