Skip to content

Commit

Permalink
fix(rn): 直接运行构建命令目录不存在的bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Pines-Cheng committed Apr 3, 2019
1 parent 4b3aa9e commit 48a1e3c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/taro-cli/src/rn.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ function buildTemp () {
}

function buildBundle () {
fs.ensureDirSync(tempDir)
process.chdir(tempDir)
// 通过 jdreact 构建 bundle
if (rnConfig.bundleType === 'jdreact') {
Expand Down

0 comments on commit 48a1e3c

Please sign in to comment.