How to use @lerna/filter-packages - 2 common examples

To help you get started, we’ve selected a few @lerna/filter-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/filter-packages

An internal Lerna tool

MIT
Latest version published 2 years ago

Package Health Score

70 / 100
Full package analysis

Popular @lerna/filter-packages functions