update pake-cli to 2.0.0-alpha2

This commit is contained in:
Tlntin
2023-04-10 21:57:29 +08:00
parent 567d6a8c41
commit 5379ce634d
16 changed files with 243 additions and 193 deletions

2
bin/helpers/rust.ts vendored
View File

@@ -21,7 +21,7 @@ export async function installRust() {
await shellExec(IS_WIN ? RustInstallScriptForWin : RustInstallScriptFocMac);
spinner.succeed();
} catch (error) {
console.error('Error codes that occur during the Rust installation process.', error.message);
console.error('install rust return code', error.message);
spinner.fail();
process.exit(1);

View File

@@ -2,6 +2,6 @@ import updateNotifier from 'update-notifier';
// @ts-expect-error
import packageJson from '../../package.json';
export async function checkUpdateTips () {
updateNotifier({ pkg: packageJson }).notify({ isGlobal: true });
export async function checkUpdateTips() {
updateNotifier({ pkg: packageJson }).notify();
}