function findScopes() {
        const p = 'node_modules';
        if (!isDirectory(p)) {
            return [];
        }
        const listing = fs.readdirSync(p);
        const scopes = listing.filter(f => f.startsWith('@'))
            .map(f => path.posix.join(p, f))
            .filter(f => isDirectory(f))
            .map(f => f.replace(/^node_modules\//, ''));
        return scopes;
    }
/**
     * Finds and returns an array of all package scopes in node_modules.
     */
Finds and returns an array of all package scopes in node_modules.
Finds and returns an array of all package scopes in node_modules .
function findScopes() {
        const p = 'node_modules';
        if (!isDirectory(p)) {
            return [];
        }
        const listing = fs.readdirSync(p);
        const scopes = listing.filter(f => f.startsWith('@'))
            .map(f => path.posix.join(p, f))
            .filter(f => isDirectory(f))
            .map(f => f.replace(/^node_modules\//, ''));
        return scopes;
    }
function findScopes ( ) { const p = 'node_modules' ; if ( ! isDirectory ( p ) ) { return [ ] ; } const listing = fs . readdirSync ( p ) ; const scopes = listing . filter ( f => f . startsWith ( '@' ) ) . map ( f => path . posix . join ( p , f ) ) . filter ( f => isDirectory ( f ) ) . map ( f => f . replace ( / ^node_modules\/ / , '' ) ) ; return scopes ; }
Finds and returns an array of all package scopes in node_modules.
Finds and returns an array of all package scopes in node_modules .