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.
package/dist/i18n/locales.json
CHANGED
package/dist/utils/download.js
CHANGED
|
@@ -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;
|