feat: add config set and npm config

This commit is contained in:
2024-11-15 22:03:13 +08:00
parent f11810220e
commit 89e4107800
6 changed files with 337 additions and 9 deletions

9
src/uitls/file.ts Normal file
View File

@@ -0,0 +1,9 @@
import fs from 'fs';
export const fileIsExist = (filePath: string) => {
try {
fs.accessSync(filePath, fs.constants.F_OK);
return true;
} catch (error) {
return false;
}
};