postinstall.ts 272 字节
Newer Older
陈文彬 已提交
1 2 3 4
import { exec, which } from 'shelljs';

function ignoreCaseGit() {
  try {
5
    if (which('git').code === 0) {
陈文彬 已提交
6 7
      exec('git config core.ignorecase false ');
    }
8 9 10 11 12 13 14
  } catch (error) {
    console.log(error);
  }
}

export function runPostInstall() {
  ignoreCaseGit();
陈文彬 已提交
15
}