Automate deploying npm packages managed by lerna to webjars.org
📓 this relies on the package being released to npm before the webjar release is started.
npx lerna-webjar
# with npm
npm install --save-dev lerna lerna-webjar
# or with yarn
yarn add --dev lerna lerna-webjar
in package.json
{
"scripts": {
+ "publish-webjar": "lerna-webjar"
}
}
then from a terminal
# with npm
npm run publish-webjar
# with yarn
yarn publish-webjar