提交 793ae947 编写于 作者: fxy060608's avatar fxy060608

wip(uts): compiler

上级 49a1ada0
......@@ -63,7 +63,10 @@ export function genUTSPlatformResource(
if (fs.existsSync(platformFile)) {
fs.moveSync(
platformFile,
path.resolve(utsOutputDir, 'src/index' + options.extname)
path.resolve(utsOutputDir, 'src/index' + options.extname),
{
overwrite: true,
}
)
}
}
......@@ -107,7 +110,9 @@ export function resolveUTSPlatformFile(
'/index' +
extname
)
fs.moveSync(platformFile, newPlatformFile)
fs.moveSync(platformFile, newPlatformFile, {
overwrite: true,
})
platformFile = newPlatformFile
}
}
......
......@@ -41,7 +41,10 @@ export function uniMovePlugin({
fs.removeSync(dest)
return fs.move(
path.resolve(cwd, filename),
path.resolve(dest, filename)
path.resolve(dest, filename),
{
overwrite: true,
}
)
})
)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册