Skip to content

Commit

Permalink
Merge pull request #30 from ch1ny/feat/node-build-perf
Browse files Browse the repository at this point in the history
feat: 支持路径别名
  • Loading branch information
ch1ny authored Sep 3, 2023
2 parents 712dc07 + de28cd4 commit c3a974e
Show file tree
Hide file tree
Showing 23 changed files with 816 additions and 618 deletions.
188 changes: 6 additions & 182 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/cli/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class Constants {
this._gitName = cp.execSync('git config --global user.name', { encoding: 'utf8' }).trim();
return this._gitName;
} catch (ex) {
return 'author';
return '';
}
}

Expand Down Expand Up @@ -157,7 +157,7 @@ const copyTemplate = async (props: IProjectProps, projectDir: string) => {
cp.execSync('git init', {
cwd: projectDir,
});
} catch (e) {}
} catch {}

// 安装依赖
const pkgInfo = pkgFromUserAgent(process.env.npm_config_user_agent);
Expand Down
Loading

0 comments on commit c3a974e

Please sign in to comment.