Repository navigation
Update Terrazzo packages to 2.5.0 #81082
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
086fc35
d03b9b1
6935540
16f1daf
9d1a357
4e2b86f
42190ea
449b9aa
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -12,24 +12,13 @@ const sources = await Promise.all( | |
| ); | ||
|
|
||
| const { | ||
| tokens: parsedTokens, | ||
| tokens, | ||
| sources: parsedSources, | ||
| resolver, | ||
| } = await parse( sources, { | ||
| config, | ||
| skipLint: true, | ||
| } ); | ||
|
|
||
| // Temporary workaround for Terrazzo bug where `alphabetize: false` leaves token | ||
| // map keys in JSON Pointer form (e.g. `#/foo/bar`) while `aliasOf` references | ||
| // remain dot-delimited (e.g. `foo.bar`), breaking alias lookups. Transforms the | ||
| // map keys using the already-normalized `token.id`. | ||
| // | ||
| // See: https://github.com/terrazzoapp/terrazzo/issues/734 | ||
| const tokens = Object.fromEntries( | ||
| Object.values( parsedTokens ).map( ( token ) => [ token.id, token ] ) | ||
| ); | ||
|
|
||
|
Comment on lines
-23
to
-32
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The issue is fixed upstream, we can remove the workaround |
||
| const { outputFiles } = await build( tokens, { | ||
| sources: parsedSources, | ||
| config, | ||
|
|
||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Changes in this file are to use the new partial-resolver API for mode overrides (see terrazzoapp/terrazzo#762) |
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I couldn't find a good reason why we should skip those (recommended) checks, and so I re-enabled them. Only the
naming-conventionwarning is disabled to preserve the existing generated token identifiers (since they use camelCase naming).