style-dictionary icon indicating copy to clipboard operation
style-dictionary copied to clipboard

Remove examples folder from published package

Open brettimus opened this issue 2 years ago • 2 comments

Currently, when you npm i style-dictionary, you end up with all the examples in the examples folder. This is roughly 19mb, which is quite significant!

% mkdir style-dictionary-examples-test && cd style-dictionary-examples-test
% npm i style-dictionary
% du -h node_modules/style-dictionary/examples
...
 19M	node_modules/style-dictionary/examples

Adding examples to the .npmignore would solve this issue.

brettimus avatar Jan 10 '23 16:01 brettimus

Thanks for the feedback! We currently use the examples folder if you use style-dictionary init [simple|complete], but that was before "create" packages became a thing so it would be good to move to a "create-style-dictionary" package and remove the "examples" from the npm artifacts.

dbanksdesign avatar Jan 29 '23 04:01 dbanksdesign

Is there any way we can revisit this? Currently, we're having a security issue because some of the dependencies (FasterXML/jackson-core) need to be updated

adidde1073 avatar Sep 08 '23 18:09 adidde1073