storybookjs / addon-knobs

Storybook addon prop editor component
MIT License
12 stars 17 forks source link

@storybook/addon-knobs install in devDependencies #5

Open cksal0805 opened 3 years ago

cksal0805 commented 3 years ago

The storybook documentation tells you to install it in'devDependency', but if you install it in'devDependency', it says" '@storybook/addon-knobs' should be listed in the project's dependencies, not devDependencies. "

Looking at the packages, it seems that there are some packages that are used in production mode. Is it correct to install it on devDependency?

shilman commented 3 years ago

@storybook/* packages should generally be listed in devDependencies because you are using them to develop your app/library/design system, but you don't want to ship those dependencies with your app/library/design system. Do you know what's printing that warning?

===

Also, FYI, we’ve released addon-controls in Storybook 6.0. Controls are portable, auto-generated knobs that are intended to replace addon-knobs, which are slated for deprecation.

Please upgrade and try out controls today!