From 454be2037ab4ef1a896d21ce8b66dd122ed85820 Mon Sep 17 00:00:00 2001 From: dengfuping Date: Sun, 29 Oct 2023 20:22:18 +0800 Subject: [PATCH] fix(codemod): file path should be correct for less-to-token --- packages/codemod/transforms/less-to-token.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } }