Skip to content

Instantly share code, notes, and snippets.

@izifortune
Created January 14, 2018 18:41
Show Gist options
  • Save izifortune/1c6f638c48c594a866f3bc9f4ac2d2be to your computer and use it in GitHub Desktop.
Save izifortune/1c6f638c48c594a866f3bc9f4ac2d2be to your computer and use it in GitHub Desktop.
nrwl libs publish
const { readdir } = require('fs-extra');
const { pexec } = require('./utils');
const publishLibs = async (dirs) => {
for (let dir of dirs) {
const publishResult = await pexec(`npm publish @common/${dir}`);
}
}
(async () => {
const dirs = await readdir('./@common');
await publishLibs(dirs);
})()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment