esa-cli 0.0.2-beta.5 → 0.0.2-beta.6

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.
@@ -913,6 +913,10 @@
913
913
  },
914
914
  "deno_download_success": {
915
915
  "en": "Download success",
916
+ "zh_CN": "下载成功"
917
+ },
918
+ "deno_install_success_tips": {
919
+ "en": "Please run ${dev} again",
916
920
  "zh_CN": ""
917
921
  }
918
922
  }
@@ -16,6 +16,7 @@ import { exec } from 'child_process';
16
16
  import { promisify } from 'util';
17
17
  import t from '../i18n/index.js';
18
18
  import logger from '../libs/logger.js';
19
+ import chalk from 'chalk';
19
20
  const execAsync = promisify(exec);
20
21
  function getBinDir() {
21
22
  const home = os.homedir();
@@ -159,6 +160,9 @@ export function downloadRuntimeAndUnzipForWindows() {
159
160
  process.exit(1);
160
161
  }
161
162
  logger.success(t('deno_install_success').d('Runtime install success!'));
163
+ logger.block();
164
+ const dev = chalk.green('esa dev');
165
+ logger.log(t('deno_install_success_tips', { dev }).d(`Please run ${dev} again`));
162
166
  }
163
167
  catch (error) {
164
168
  const err = error;
@@ -19,7 +19,7 @@ export function preCheckDeno() {
19
19
  const command = yield checkDenoInstalled();
20
20
  if (!command) {
21
21
  logger.error(t('install_runtime_explain').d('Under the beta phase, we are temporarily using Deno as the local development runtime. It needs to be installed first.'));
22
- installDeno();
22
+ yield installDeno();
23
23
  return false;
24
24
  }
25
25
  return command;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "esa-cli",
3
- "version": "0.0.2-beta.5",
3
+ "version": "0.0.2-beta.6",
4
4
  "description": "A CLI for operating Alibaba Cloud ESA EdgeRoutine (Edge Functions).",
5
5
  "main": "bin/enter.cjs",
6
6
  "type": "module",