$ npm install -g npm-private-cli
- Add the
privateDenpendencies
to yourpackage.json
:
"privateDenpendencies": {
"Owner/repo-name": ">=0.0.1"
}
}
- Add a pre-install script to pipeline your workflow:
"scripts": {
"pre-install": "npm-private -u yorkie -p your-password"
}
}
Conguratulations to you, then you could publish your private packages by git/github, and define your dependencies like public packages.
MIT