vben-admin-thin-next/build/script/postinstall.ts

16 lines
272 B
TypeScript
Raw Normal View History

2020-09-28 20:19:10 +08:00
import { exec, which } from 'shelljs';
function ignoreCaseGit() {
try {
if (which('git').code === 0) {
2020-09-28 20:19:10 +08:00
exec('git config core.ignorecase false ');
}
} catch (error) {
console.log(error);
}
}
export function runPostInstall() {
ignoreCaseGit();
2020-09-28 20:19:10 +08:00
}