Closed daanvosdewael closed 1 month ago
Oops that's my bad, I hadn't initially planned on exposing the utility in the Style Dictionary library, but then I changed my mind and made it public API but didn't think to switch it from dev dep to real dep.
PRs welcome to fix! Otherwise I'll fix it start of next week somewhere.
Quick workaround would be to install that dependency yourself
No worries! That's development :)
I made a PR 🙏
Thanks for the PR! https://github.com/amzn/style-dictionary/pull/1219
In the
v4
branch the@zip.js/zip.js
dependency is used inlib/utils/convertToDTCG.js
:https://github.com/amzn/style-dictionary/blob/5763a7702a686a49d9f4efd9435ceaf2e76b6065/lib/utils/convertToDTCG.js#L9
But in the
package.json
this dependency is included as adevDependency
:https://github.com/amzn/style-dictionary/blob/5763a7702a686a49d9f4efd9435ceaf2e76b6065/package.json#L132
This means that it will not be installed as a dependency when you use the
style-dictionary
package, resulting in the following error:The package should be listed as a normal
dependency
instead of adevDependency
.