Sign in

canrd-outside / order-erp-front · Files

GitLab

  • Go to group
  • Project
  • Activity
  • Files
  • Commits
  • Builds 0
  • Network
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 1
  • Labels
  • Wiki
  • order-erp-front
  • build
  • script
  • postinstall.ts
  • feat: the production environment can be dynamically configured
    bb3b8f81
    nebv authored
    2020-10-13 01:40:21 +0800  
    Browse Dir ยป
postinstall.ts 272 Bytes
Edit Raw Blame History
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
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();
}