How to use the @lerna/batch-packages function in @lerna/batch-packages

To help you get started, we’ve selected a few @lerna/batch-packages examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github pixijs / pixi-filters / rollup.config.js View on Github external
async function getSortedPackages() {
    // Support --scope and --ignore globs
    const {scope, ignore} = minimist(process.argv.slice(2));

    // Standard Lerna plumbing getting packages
    const packages = await getPackages(__dirname);
    const filtered = filterPackages(
        packages,
        scope,
        ignore,
        false
    );

    return batchPackages(filtered)
        .reduce((arr, batch) => arr.concat(batch), []);
}
github pixijs / pixi.js / rollup.config.js View on Github external
async function getSortedPackages(scope, ignore)
{
    const packages = await getPackages(__dirname);
    const filtered = filterPackages(
        packages,
        scope,
        ignore,
        false
    );

    return batchPackages(filtered)
        .reduce((arr, batch) => arr.concat(batch), []);
}

@lerna/batch-packages

An internal Lerna tool

MIT
Latest version published 5 years ago

Package Health Score

58 / 100
Full package analysis

Popular @lerna/batch-packages functions