This commit is contained in:
空巷一人
2024-03-09 20:58:55 +08:00
parent 5197a2fe70
commit 089f2c31a6
4 changed files with 38762 additions and 8 deletions

8
.vscode/settings.json vendored Normal file
View File

@ -0,0 +1,8 @@
{
"search.exclude": {
"**/node_modules": true,
"**/bower_components": true,
"**/*.code-search": true,
"**/dist": true,
}
}

38758
dist/index.js vendored

File diff suppressed because one or more lines are too long

View File

@ -5,7 +5,7 @@
"license": "MIT",
"scripts": {
"test": "chcp 65001 && jest --coverage",
"build": "rimraf ./dist && ncc build -m -o dist src/index.ts"
"build": "rimraf ./dist && ncc build -o dist src/index.ts"
},
"devDependencies": {
"@tsconfig/node16": "^16.1.1",

View File

@ -17,7 +17,7 @@ export async function nodeInstall() {
const version = await nodeVersionAlias(nodeVersion, {
mirror: 'https://npmmirror.com/mirrors/node'
}).catch(err => err);
console.log(version);
if (version instanceof Error) {
console.log('node版本错误', version);
return;