Build dist as part of npm run publish
ballercat opened this issue · comments
Arthur Buldauskas commented
Bug Report
Overview
npm run publish
(from root dir) should build all nested packages before running lerna publish. It's too easy to publish a stale version of the library.
Expected
npm run publish
build packages.
Actual
npm run publish
only publishes changed sources not builds.
poeticAndroid commented
maybe this could help?
https://docs.npmjs.com/misc/scripts
Arthur Buldauskas commented
Yes, that did help!
I've added preversion
hooks to the packages with a build step here f5de2bb
Lerna does not auto commit these builds, but it does seem to be publishing correctly. Thanks.