amzn / style-dictionary

A build system for creating cross-platform styles.
https://styledictionary.com
Apache License 2.0
3.87k stars 543 forks source link

Creating a new project fails #1234

Closed luupanu closed 3 months ago

luupanu commented 3 months ago

From the docs: creating a new project in v4:

> npx style-dictionary init basic

Copying starter files...

some_repo/node_modules/style-dictionary/bin/style-dictionary.js:91
    node_fs.copySync(path.join(__dirname, '..', 'examples', type), process.cwd());

TypeError: node_fs.copySync is not a function

copySync is an fs-extra only function. Also the docs say that style-dictionary init basic should work, but that example folder does not exist in v4.