vue-vben-admin/build/script/postinstall.ts

16 lines
272 B
TypeScript

import { exec, which } from 'shelljs';
function ignoreCaseGit() {
try {
if (which('git').code === 0) {
exec('git config core.ignorecase false ');
}
} catch (error) {
console.log(error);
}
}
export function runPostInstall() {
ignoreCaseGit();
}