diff --git a/packages/codemod/transforms/less-to-token.js b/packages/codemod/transforms/less-to-token.js index c01a74740..1fa9f85fa 100644 --- a/packages/codemod/transforms/less-to-token.js +++ b/packages/codemod/transforms/less-to-token.js @@ -77,7 +77,7 @@ async function lessToToken(file) { const allLessFiles = findAllLessFiles(file); for await (const item of allLessFiles) { const content = await transform(item); - fs.writeFileSync(file, content); + fs.writeFileSync(item, content); } }