Catalog npm
Back to packageRELEASE DETAILS

3.16.2

npm

@0x-lerna-fork/filter-options

Options for lerna sub-commands that need filtering

corelerna
Published22 Jul 2019
Direct dependencies3
Transitive dependenciesNot calculated

README

Current package documentation

@0x-lerna-fork/filter-options

Options for lerna sub-commands that need filtering

Install lerna for access to the lerna CLI.

Options

--scope <glob>

Include only packages with names matching the given glob.

$ lerna exec --scope my-component -- ls -la
$ lerna run --scope toolbar-* test
$ lerna run --scope package-1 --scope *-2 lint

Note: For certain globs, it may be necessary to quote the option argument to avoid premature shell expansion.

--ignore <glob>

Exclude packages with names matching the given glob.

$ lerna exec --ignore package-{1,2,5}  -- ls -la
$ lerna run --ignore package-1  test
$ lerna run --ignore package-@(1|2) --ignore package-3 lint

More examples of filtering can be found here.

--no-private

Exclude private packages. They are included by default.

--since [ref]

Only include packages that have been updated since the specified ref. If no ref is passed, it defaults to the most-recent tag.

# List the contents of packages that have changed since the latest tag
$ lerna exec --since -- ls -la

# Run the tests for all packages that have changed since `master`
$ lerna run test --since master

# List all packages that have changed since `some-branch`
$ lerna ls --since some-branch

This can be particularly useful when used in CI, if you can obtain the target branch a PR will be going into, because you can use that as the ref to the --since option. This works well for PRs going into master as well as feature branches.

--include-filtered-dependents

Include all transitive dependents when running a command regardless of --scope, --ignore, or --since.

--include-filtered-dependencies

Include all transitive dependencies when running a command regardless of --scope, --ignore, or --since.

Used in combination with any command that accepts --scope (bootstrap, clean, ls, run, exec). Ensures that all dependencies (and dev dependencies) of any scoped packages (either through --scope or --ignore) are operated on as well.

Note: This will override the --scope and --ignore flags.

i.e. A package matched by the --ignore flag will still be bootstrapped if it is depended on by another package that is being bootstrapped.

This is useful for situations where you want to "set up" a single package that relies on other packages being set up.

$ lerna bootstrap --scope my-component --include-filtered-dependencies
# my-component and all of its dependencies will be bootstrapped
$ lerna bootstrap --scope "package-*" --ignore "package-util-*" --include-filtered-dependencies
# all packages matching "package-util-*" will be ignored unless they are
# depended upon by a package whose name matches "package-*"

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 3

Native requirements
3 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
@0x-lerna-fork/collect-updates
Environment
{
  "local_name": "@0x-lerna-fork/collect-updates",
  "alias": false,
  "peer_metadata": null
}
3.16.2runtime
@0x-lerna-fork/filter-packages
Environment
{
  "local_name": "@0x-lerna-fork/filter-packages",
  "alias": false,
  "peer_metadata": null
}
3.16.2runtime
dedent
Environment
{
  "local_name": "dedent",
  "alias": false,
  "peer_metadata": null
}
^0.7.0runtime

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "integrity": "sha512-Vl0V7QWgm/vmAYd5SNiDWOcT0LxBdknaS9xcUn+OuqyqT18SbSuVpL9p1CILYrAjkXdHWX9nQGD9xRUo8WL7Zg==",
  "shasum": "b356148c6d485930dd13bf96a7b9c1d12ab7b850",
  "tarball": "https://registry.npmjs.org/@0x-lerna-fork/filter-options/-/filter-options-3.16.2.tgz",
  "fileCount": 6,
  "unpackedSize": 13335,
  "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdNgHHCRA9TVsSAnZWagAAUb0QAIbJmHO2yKWVdE+D+14p\nYaHxNnKwKcBakjJGd/La4ecFgeRAUr2lSNk0lBqOnQYr1V1rRGMnd5+t7giQ\nc7pOu/fb0lzcb1P8uf17UaFbyif58u3311wKMk8+2iCXejnRODy4ZdAzMjZY\nz665tDWX8/lKrxRQIpFbb9Dt4FJSQ+yNGz6ZjWMj1B0n9ySTO7Dt9oFJ6GYC\nx/BLWKfg3c0et/SLYe1zrF/AspJwdyPa1RcXgHlbi5BMv/7jHii6XKZsnIJc\nplh/q5Va4Kvv0Dh0C3ywx5Dhoupc6ubQE6hYMpON5XOU8LlqEgBVL5eRMX4w\nsqW6h1mZUlvJrlF/Byfh4/l0cExs8HAaI79zgg6Q43xcUoSpSS9ae1yp8VuD\nOxnrikpKILfdsp9PFiJ87ypg5IBxFyIMy1Ai5v0cuVJufdmqROvy5Hd2yMT4\nnLJrd3pC/YO5HpWeyqTdhyeM/cxNgckZ0zmwrnDHxxQ+iDLvPEUWpmNVODmc\ndpaJ1kBxekjtEZEmfR4vUFJNvrD1ioDFTBPPDhHi++RWVj0zZQ/NAypgW7tW\nLU0UYcSazY8cAFRD80ALmC4DAt0rYj0k7vSwZPSGxXX2i2NQcYOflM4vATay\nLJqAa3ta/I34ZickutsX4EsIdCK9TjH45FoblKDs3NpSPFQZB3EuAG3OigJe\n4d3o\r\n=RFCB\r\n-----END PGP SIGNATURE-----\r\n",
  "signatures": [
    {
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
      "sig": "MEYCIQCgzLMTBKV39Oy3Gp+oYZy9VYh63dAJORM1jCMK/57VnwIhAJqS5qDWH2Hsq2D6z0ZZWXy1KzaNPFwPAE7MwMAbCadG"
    }
  ]
}

Repository

PENDING
lerna/lerna

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 22:18 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:e13cbe9fb2bdde035e9afa2d29ff4784afae9b4d4bee9fcf5b54669720a88250

Other collected versions

3.16.322 Jul3.0.0-beta.2224 JulView all collected versions →