r/learnjavascript • • 17d ago

Publishing a JS framework

Im working on a project for myself. Its an unreviewed, unaudited and far from finished. It started of as a person curiosity and evolved from there.

Im asking because if i publish something on NPM, there are strict controls around versioning for which i havent burdened myself on my own projects (but clearly important when making something for a wider community). I also wonder if im overlooking any other details.

I wonder what best practices there are for something like this. Should i be publishing new versions with CI/CD? Are there any tips or advice on doing this in the modern js package ecosystem?

6 Upvotes

8 comments sorted by

View all comments

1

u/Discordbothost 17d ago

Test the package a user will actually install: run npm pack, install the .tgz into a fresh example app, and run the README example there. That catches missing build files and broken imports your repo's tests can miss.