Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(cli): 创建文件夹统一使用 fs.ensureDirSync #2576

Merged
merged 1 commit into from
Mar 25, 2019

Conversation

js-newbee
Copy link
Contributor

  1. taro-cli/src/build.js 中使用 fs.mkdirSync(outputPath) 可能有问题,如果 outputRoot 是包含子目录的,如 dist/weapp,编译会报错
  2. fs. mkdirpSync、fs.ensureDirSync 内部实现都是 fs.mkdirsSync,既然项目中多数都用 fs.ensureDirSync 了,那没必要单独某个地方用 fs. mkdirpSync
  3. 既然第 2 点可行,那其他地方也顺便统一都改掉哈

@js-newbee js-newbee changed the title refactor: 创建文件夹统一使用 fs.ensureDirSync refactor(cli): 创建文件夹统一使用 fs.ensureDirSync Mar 25, 2019
@luckyadam
Copy link
Member

OJBK!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants