packagedev.json
should always mirror your package.json
for development.
After installing dependencies for your library and running your demo, just copy contents of package.json
to packagedev.json
.
Then to publish:
- Setup
packagepublish.json
the way you want your library published (Bumping correct version and setting the description, author, keywords, repo, main, and typings correctly for instance). node prep publish
(This will set yourpackage.json
to be yourpackagepublish.json
).npm run build
(Create a fresh build of your library)- Update the verion in README.md, package.json, packagepublish.json and packagedev.json
npm publish
After publishing, it's a good idea to set your package.json
back to development mode before committing your changes. Your packagedev.json
should be exactly what your development mode package was before publishing above.
node prep dev
- Continue developing.