Package Exports
- @storybook/codemod
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@storybook/codemod) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Storybook Codemods
Storybook Codemods is a collection of codemod scripts written with JSCodeshift. It will help you migrate breaking changes.
Installation
npm install @storybook/codemodTransforms
add-organisation-to-package-name
Updates package names in imports to include our organisation name prefix
(@storybook/), stripping off the old @storybook/ prefix.
> jscodeshift -t add-organisation-to-package-name path/to/source.jsExample:
import { storiesOf } from '@kadira/storybook';becomes
import { storiesOf } from '@storybook/react';