Skip to content

Commit

Permalink
fix: correctly resolve file pathing when replacing SCSS variables usa…
Browse files Browse the repository at this point in the history
…ge (#2638)
  • Loading branch information
viktorrusakov authored Sep 20, 2023
1 parent 4d8d89a commit 0957ffe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tokens/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ async function replaceVariablesUsage(filePath, variablesMap, direction = 'scss-t
variableRegex = /(\$|#{\$)(\w|-|_)*(}|,|;|\)|\s|$)/g;
}

const fileStream = fs.createReadStream(path.resolve(__dirname, '..', filePath));
const fileStream = fs.createReadStream(filePath);

const rl = readline.createInterface({
input: fileStream,
Expand Down

0 comments on commit 0957ffe

Please sign in to comment.