Fix design token syntax issues and upgrade to Style Dictionary 5 - #1395
Fix design token syntax issues and upgrade to Style Dictionary 5#1395richadr wants to merge 19 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
4240c7a to
656129f
Compare
|
This prevents silent `pnpm test` failures; it should block the pipeline instead.
…g the group itself
656129f to
60689ef
Compare
This release contains [breaking changes](https://github.com/style-dictionary/style-dictionary/blob/main/CHANGELOG.md#500) like not allowing the .value suffix, which has been fixed in earlier commits
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1395 +/- ##
=======================================
Coverage 89.51% 89.51%
=======================================
Files 19 19
Lines 1392 1392
Branches 185 174 -11
=======================================
Hits 1246 1246
Misses 145 145
Partials 1 1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
| "test": "npm-run-all test-workspaces test-build:**", | ||
| "test-build:css": "find proprietary/*/dist -type d \\( -name node_modules \\) -prune -false -o -name '*.css' -print0 -exec sass --no-source-map {}:/dev/null \\;", | ||
| "test-build:scss": "find proprietary/*/dist -type d \\( -name node_modules \\) -prune -false -o -name '*.scss' -print0 -exec sass --no-source-map {} \\;", | ||
| "test": "pnpm run test-workspaces && pnpm run test-build:css && pnpm run test-build:scss", |
There was a problem hiding this comment.
De bedoeling van pnpm run test-build is om juist separate te zijn van pnpm run test.
Ik denk dat we dit ergens in het handboek moeten gaan documenteren, als we dat niet al hebben.
pnpm run test: draai alle test die mogelijk zijn zonder te wachten oppnpm run build, voor snelle feedback in CIpnpm run test-build: draai alle test die pas mogelijk zijn nápnpm run build
There was a problem hiding this comment.
Hoe zeker weten we dat het een minor is en niet major?



Currently,
pnpm testoutputs a list of issues, but the pipeline is not blocked by them. By changing the package.json command, the pipeline will now fail if there is an issue.So that surfaces a couple of issues, which are also fixed in this PR.
Some tokens were not referenced correctly (for example missing braces)
There was a very hard to find ordering bug that was supposedly fixed in Style Dictionary 4.1.2 but properly fixed in 5.1.1 (issue). Upgrading fixes values being referenced before they are declared. So this requires a major upgrade of Style Dictionary.
In Style Dictionary 5, referencing with
.valuesuffix is no longer allowed, this has been removed where needed. The SD5 upgrade was done across the board, and will minor-bump every *-design-tokens package. Other breaking changes are not relevant for us.