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

wip(uts): compiler

上级 49a1ada0
...@@ -63,7 +63,10 @@ export function genUTSPlatformResource( ...@@ -63,7 +63,10 @@ export function genUTSPlatformResource(
if (fs.existsSync(platformFile)) { if (fs.existsSync(platformFile)) {
fs.moveSync( fs.moveSync(
platformFile, platformFile,
path.resolve(utsOutputDir, 'src/index' + options.extname) path.resolve(utsOutputDir, 'src/index' + options.extname),
{
overwrite: true,
}
) )
} }
} }
...@@ -107,7 +110,9 @@ export function resolveUTSPlatformFile( ...@@ -107,7 +110,9 @@ export function resolveUTSPlatformFile(
'/index' + '/index' +
extname extname
) )
fs.moveSync(platformFile, newPlatformFile) fs.moveSync(platformFile, newPlatformFile, {
overwrite: true,
})
platformFile = newPlatformFile platformFile = newPlatformFile
} }
} }
......
...@@ -41,7 +41,10 @@ export function uniMovePlugin({ ...@@ -41,7 +41,10 @@ export function uniMovePlugin({
fs.removeSync(dest) fs.removeSync(dest)
return fs.move( return fs.move(
path.resolve(cwd, filename), 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.
先完成此消息的编辑!
想要评论请 注册