@21epub/npm-link-peerdeps
v0.0.9
Published
A npm-link helper CLI for npm package develop with Main Project
Downloads
15
Readme
@21epub/npm-link-peerdeps
A npm-link helper for npm package develop with Main Project
Intro
Start your npm library created by create-parcel-react-library
Link your npm package to Main Project to test in Project ENV.
Auto-run npm-link for both Library and Project.
Link peers to the Main Project
Feature
- [x] Easy-to-use
Usage
Use npx directly
To start npm-link your library :
npx @21epub/npm-link-peerdeps start # start npm-link for project dev
After answer prompts , It will do something below:
- Npm link current library in library cwd
- Rm peers from node_modules
- Install library to Main Project & Link it to Main project
- Watch & re bundle library code
To stop npm-link and return back to your library local dev :
npx @21epub/npm-link-peerdeps stop # stop npm-link for project dev
Or install and run as global
npm install -g @21epub/npm-link-peerdeps
npm-link-peerdeps start
...
npm-link-peerdeps stop
License
MIT © 21epub