postinstall.ts 272 B

123456789101112131415
  1. import { exec, which } from 'shelljs';
  2. function ignoreCaseGit() {
  3. try {
  4. if (which('git').code === 0) {
  5. exec('git config core.ignorecase false ');
  6. }
  7. } catch (error) {
  8. console.log(error);
  9. }
  10. }
  11. export function runPostInstall() {
  12. ignoreCaseGit();
  13. }