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 and PKulkoRaccoonGang committed Aug 4, 2024
1 parent 128b562 commit dafca4b
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 dafca4b

Please sign in to comment.