Skip to content

Commit 28fdc7a

Browse files
committed
changed outputReferences to false (temporary) to bypass issue with missing references when using Carbon tokens with theming logic
1 parent 8d9ab0c commit 28fdc7a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/tokens/scripts/build-parts/getStyleDictionaryConfig.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export function getStyleDictionaryConfig({ target, mode }: { target: Target, mod
6868
format: 'css/variables',
6969
options: {
7070
// TODO understand if is better to output references or not for the "common" definitions (probably yes)
71-
outputReferences: true,
71+
outputReferences: false,
7272
// outputReferences: (token, { dictionary, usesDtcg }) => {
7373
// // `dictionary` contains `allTokens`, `tokens`, `tokenMap`, `unfilteredTokens`, `unfilteredAllTokens` and `unfilteredTokenMap` props
7474
// // `usesDtcg` tells you whether the Design Token Community Group spec is used with $ prefixes ($value, $type etc.)
@@ -86,7 +86,7 @@ export function getStyleDictionaryConfig({ target, mode }: { target: Target, mod
8686
format: 'css/variables',
8787
options: {
8888
// TODO understand if is better to output references or not for the "themed" definitions (almost certainly yes)
89-
outputReferences: true,
89+
outputReferences: false,
9090
// outputReferences: (token, { dictionary, usesDtcg }) => {
9191
// // `dictionary` contains `allTokens`, `tokens`, `tokenMap`, `unfilteredTokens`, `unfilteredAllTokens` and `unfilteredTokenMap` props
9292
// // `usesDtcg` tells you whether the Design Token Community Group spec is used with $ prefixes ($value, $type etc.)
@@ -241,6 +241,7 @@ export function getStyleDictionaryConfig({ target, mode }: { target: Target, mod
241241
...baseConfig,
242242
// we need only foundational tokens (colors, typography, etc)
243243
'source': [
244+
`src/carbon-extracted/**/*.json`,
244245
`src/global/**/*.json`,
245246
`src/products/shared/color/**/*.json`,
246247
`src/products/shared/typography.json`,

0 commit comments

Comments
 (0)