From dafca4b3d257dc0d08696ebe1ef0011fa509ce1d Mon Sep 17 00:00:00 2001 From: Viktor Rusakov <52399399+viktorrusakov@users.noreply.github.com> Date: Wed, 20 Sep 2023 17:16:16 +0300 Subject: [PATCH] fix: correctly resolve file pathing when replacing SCSS variables usage (#2638) --- tokens/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tokens/utils.js b/tokens/utils.js index 520f0422d3..83ff09c7dc 100644 --- a/tokens/utils.js +++ b/tokens/utils.js @@ -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,