Skip to content

Commit

Permalink
fix(cli): convertor js 重复拷贝文件
Browse files Browse the repository at this point in the history
  • Loading branch information
luckyadam committed Nov 19, 2018
1 parent e1eee4b commit ee0122e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/taro-cli/src/convertor.js
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ class Convertor {
}
if (files.size) {
files.forEach(file => {
if (!fs.existsSync(file) && this.hadBeenCopyedFiles.has(file)) {
if (!fs.existsSync(file) || this.hadBeenCopyedFiles.has(file)) {
return
}
const code = fs.readFileSync(file).toString()
Expand Down

0 comments on commit ee0122e

Please sign in to comment.