Skip to content

Commit

Permalink
refactor: renamed hasSourceTokensOnly variable
Browse files Browse the repository at this point in the history
  • Loading branch information
PKulkoRaccoonGang committed Nov 4, 2024
1 parent 036f28c commit b4d560b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/build-tokens.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ async function buildTokensCommand(commandArgs) {
const {
'build-dir': buildDir,
source: tokensSource,
'source-tokens-only': hasSourceTokensOnly,
'source-tokens-only': transformSourceTokensOnly,
'output-references': outputReferences,
themes,
verbose,
Expand Down Expand Up @@ -74,15 +74,15 @@ async function buildTokensCommand(commandArgs) {
{
format: 'css/custom-variables',
destination: 'core/variables.css',
filter: hasSourceTokensOnly ? 'isSource' : undefined,
filter: transformSourceTokensOnly ? 'isSource' : undefined,
options: {
outputReferences,
},
},
{
format: 'css/custom-media-breakpoints',
destination: 'core/custom-media-breakpoints.css',
filter: hasSourceTokensOnly ? 'isSource' : undefined,
filter: transformSourceTokensOnly ? 'isSource' : undefined,
options: {
outputReferences,
},
Expand Down Expand Up @@ -121,7 +121,7 @@ async function buildTokensCommand(commandArgs) {
{
format: 'css/custom-variables',
destination: `themes/${themeVariant}/variables.css`,
filter: hasSourceTokensOnly
filter: transformSourceTokensOnly
? `isSource.${themeVariant}`
: `isThemeVariant.${themeVariant}`,
options: {
Expand All @@ -131,7 +131,7 @@ async function buildTokensCommand(commandArgs) {
{
format: 'css/utility-classes',
destination: `themes/${themeVariant}/utility-classes.css`,
filter: hasSourceTokensOnly ? 'isSource' : undefined,
filter: transformSourceTokensOnly ? 'isSource' : undefined,
options: {
outputReferences,
},
Expand Down

0 comments on commit b4d560b

Please sign in to comment.