Skip to content

Commit

Permalink
fix(codemod): file path should be correct for less-to-token
Browse files Browse the repository at this point in the history
  • Loading branch information
dengfuping committed Oct 29, 2023
1 parent cad5472 commit 454be20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/codemod/transforms/less-to-token.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down

0 comments on commit 454be20

Please sign in to comment.