提交 152a6858 编写于 作者: fxy060608's avatar fxy060608

fix(v3): ignore same file (uni-migration)

上级 7a757512
......@@ -39,7 +39,7 @@ module.exports = function migrate(input, out, options = {}) {
)
) {
options.silent !== true && console.log(`copy: ${dest}`)
fs.copySync(src, dest)
src !== dest && fs.copySync(src, dest)
}
} else {
options.silent !== true && console.log(`write: ${path.resolve(out, asset.path)}`)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册