The Psammead repository contains packages that are actively being maintained. However packages in Psammead are occasionally replaced or moved out of Psammead – these are common examples of when a package should be deprecated.
- Create a new branch.
- Delete the package root, e.g.
packages/components/psammead-caption
. - Run
yarn remove -W <package-name>
. - Remove the package from the list of all packages in the Psammead packages directory.
- Search the repository for any reference to the package that is being deprecated and remove it.
- Create a pull request from this branch.
Tell your NPM Admin to run the command below, supplying a message argument which will be used as a deprecation warning to those who try to install the package.
npm deprecate @bbc/<package-name> "This package is no longer maintained."
If for some reason a package was deprecated by mistake or is reintroduced to Psammead, this process can be reversed by running npm deprecate
with the message argument ""
(empty, with double quotes):
npm deprecate @bbc/<package-name> ""