From d1f6f90bff08e06a12bec25a747bb57fc0c61942 Mon Sep 17 00:00:00 2001 From: Jeremy Walton Date: Mon, 22 Aug 2022 16:21:09 -0400 Subject: [PATCH] Fix token build script --- build_token_json.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build_token_json.js b/build_token_json.js index 41c943d5..62c04214 100644 --- a/build_token_json.js +++ b/build_token_json.js @@ -73,7 +73,7 @@ try { fs.readdir(source, {withFileTypes: true}, (_errors, files) => { let variables = {} - files.filter((directoryEntry) => directoryEntry.isFile() && directoryEntry.name !== 'dark_mode_tokens.scss').forEach((directoryEntry) => { + files.filter((directoryEntry) => directoryEntry.isFile() && directoryEntry.name !== 'dark_mode_tokens.scss' && directoryEntry.name !== 'index.scss').forEach((directoryEntry) => { const fileContents = fs.readFileSync(`${source}/${directoryEntry.name}`) const matches = fileContents.toString().match(/^\s*--.*?(?=;)/gm) matches.forEach((match) => {