Skip to content

Commit

Permalink
Replace javascript/module-v2 format with upstream (#740)
Browse files Browse the repository at this point in the history
* initial test

* rm packages that are now shipped with primitives
  • Loading branch information
lukasoppermann authored Sep 10, 2024
1 parent f6bab57 commit 6c7004b
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 32 deletions.
76 changes: 48 additions & 28 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions packages/design-tokens/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,7 @@
"test": "jest"
},
"devDependencies": {
"@primer/primitives": "9.1.0",
"prettier": "^2.8.8",
"@prettier/sync": "^0.5.2",
"@primer/primitives": "9.1.1",
"color2k": "^2.0.2",
"fast-glob": "3.3.2",
"style-dictionary": "3.8.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/design-tokens/scripts/style-dictionary.js
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ function buildPrimitives(
// map the array of token file paths to style dictionary output files
files: files.map(filePath => {
return {
format: `javascript/module-v2`,
format: `javascript/commonJs`,
destination: filePath.replace(`.json`, `.js`),
filter: token => token.filePath === filePath && token.isSource,
}
Expand Down

0 comments on commit 6c7004b

Please sign in to comment.