JSPM

@storybook/codemod

3.0.0-rc.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1788916
  • Score
    100M100P100Q193006F
  • License MIT

A collection of codemod scripts written with JSCodeshift

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

Greenkeeper badge Build Status CodeFactor Known Vulnerabilities BCH compliance codecov Storybook Slack

Storybook Codemods is a collection of codemod scripts written with JSCodeshift. It will help you migrate breaking changes.

Installation

npm install @storybook/codemod

Transforms

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.js

Example:

import { storiesOf } from '@kadira/storybook';

becomes

import { storiesOf } from '@storybook/react';