Skip to content

Commit

Permalink
Fix token build script
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeremy-Walton committed Aug 22, 2022
1 parent 8685b53 commit d1f6f90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build_token_json.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit d1f6f90

Please sign in to comment.