react-native-navigation的迁移库

1234567891011121314
  1. const exec = require('shell-utils').exec;
  2. const isWindows = process.platform === 'win32' ? true : false;
  3. run();
  4. function run() {
  5. if (isWindows) {
  6. exec.execSync(`del /F /S /Q lib\\dist`);
  7. exec.execSync(`tsc`);
  8. } else {
  9. exec.execSync(`rm -rf ./lib/dist && tsc`);
  10. }
  11. }