Skip to content

Commit

Permalink
feat!: update default main file output for design tokens (#8299)
Browse files Browse the repository at this point in the history
**Related Issue:** n/a

## Summary

Engineers prefer to use es6 to import specific tokens when necessary.
The es6 format (which is tree-shakable) should be the one imported by
default.

BREAKING CHANGE:

- `import * as tokens from "@esri/calcite-design-tokens";` now imports a
tree-shakable list of design tokens in camelCase format rather than a
JSON object.
  • Loading branch information
alisonailea authored and benelan committed Dec 2, 2023
1 parent 753061f commit 4050a91
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/calcite-design-tokens/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"tokens"
],
"type": "module",
"main": "./dist/js/global.js",
"types": "./dist/js/global.d.ts",
"main": "./dist/es6/global.js",
"types": "./dist/es6/global.d.ts",
"files": [
"./dist/**/*"
],
Expand Down

0 comments on commit 4050a91

Please sign in to comment.