Skip to content

Commit

Permalink
fix: correctly resolve file pathing when replacing SCSS variables' usage
Browse files Browse the repository at this point in the history
  • Loading branch information
viktorrusakov committed Sep 20, 2023
1 parent 4d8d89a commit 706ce2e
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 706ce2e

Please sign in to comment.