[fix] Rework the build process

And remind me to RTFM about npm more carefully next time…