Skip to content

Deprecating a Component

Jamie K edited this page Jul 8, 2021 · 6 revisions

First update npmjs.org:

  1. In the component's package.json, prepend the description with "DEPRECATED - ".
  2. Run yarn changeset and mark the component for a patch.
  3. Merge the above changes.
  4. Manually run the full release, or wait for it to run.

Once the release is done, clean up:

  1. If any other paprika components use the old package, replace those instances.
  2. Remove the component from .storybook/storyTree.js
  3. Delete the package from the codebase.
  4. Run npm deprecate @paprika/oldpackage "Moved to @paprika/newpackage"