Migration
How to migrate from the private package to the public package.
Background
When Dracula UI was first released as an early access project, it was hosted on GitHub's registry as a private package.
This was a great way to get the project out there and get feedback from the community. However, it was not a great way to distribute the package since it required authentication to install.
Here's how to migrate from the private package to the public package.
1. Remove .npmrc
If you have a .npmrc
file in your project, remove it. This file is no longer needed.
registry=https://registry.npmjs.org/@dracula:registry=https://npm.pkg.github.com///npm.pkg.github.com/:_authToken=ghp_riBdWlkWdgszbijvfqkhcCSTr3evT1f4RpWuW
2. Update package.json
Update your local package.json file to use the new package name which is dracula-ui
instead of @dracula/dracula-ui
.
You'll also have to bump the version to 1.0.0
which only contains the package rename and no breaking changes.
{"dependencies": {"dracula-ui": "^1.0.0"}}
3. Rename imports
Find and replace all instances of @dracula/dracula-ui
with dracula-ui
.
import { Text } from 'dracula-ui'