Skip to content

Commit

Permalink
fix(cli): 修复目录创建
Browse files Browse the repository at this point in the history
  • Loading branch information
luckyadam committed Jan 7, 2020
1 parent 4d74ae4 commit 10eef8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/taro-cli/src/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export default class Builder {
}

emptyFirst ({ watch, type }) {
const outputPath = path.join(this.appPath, `${this.config.outputRoot || CONFIG.OUTPUT_DIR}}`)
const outputPath = path.join(this.appPath, `${this.config.outputRoot || CONFIG.OUTPUT_DIR}`)
if (!fs.existsSync(outputPath)) {
fs.ensureDirSync(outputPath)
} else if (type !== BUILD_TYPES.H5 && (type !== BUILD_TYPES.QUICKAPP || !watch)) {
Expand Down

0 comments on commit 10eef8c

Please sign in to comment.