{"name":"@lerna-lite/core","version":"4.10.0","author":{"name":"Ghislain B."},"license":"MIT","_id":"@lerna-lite/core@4.10.0","maintainers":[{"name":"ghiscoding","email":"gbeaulac@gmail.com"}],"homepage":"https://github.com/lerna-lite/lerna-lite","bugs":{"url":"https://github.com/lerna-lite/lerna-lite/issues"},"dist":{"shasum":"4832269cdeee847dfd22ba72909509cd430ec7bc","tarball":"http://registry-npm.ywwl.com/@lerna-lite/core/download/@lerna-lite/core-4.10.0.tgz","fileCount":165,"integrity":"sha512-gtjPLFFT3Jj4NGKKVro7dwzIJReYl+wbEkWg/6o17VrMfyOXE3lS6klhEXCLAkC6fVRP5mEKoeZTPQbgHOh6vw==","signatures":[{"sig":"MEUCIF3TGfXBkbg1MNlpFSoPmzznD9tB+VkQL6mEW1YuffW9AiEA/Mgxz7aiLhH2qSonLBzJjOavqSLBLIhqAm5jCQcO+ZI=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@lerna-lite%2fcore@4.10.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":269919,"size":64553,"noattachment":false,"key":"/@lerna-lite/core/-/@lerna-lite/core-4.10.0.tgz"},"type":"module","types":"./dist/index.d.ts","engines":{"node":"^20.17.0 || >=22.9.0"},"exports":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"funding":{"url":"https://ko-fi.com/ghiscoding","type":"ko_fi"},"gitHead":"659f24a146637a8ac3add02ab97890ac6d68f1b3","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:8f2a9b6e-1755-4623-a397-38856ff79599"}},"repository":{"url":"git+https://github.com/lerna-lite/lerna-lite.git","type":"git","directory":"packages/core"},"_npmVersion":"lerna/4.10.0/node@v24.11.1+x64 (linux)","description":"Lerna-Lite core implementation module","directories":{},"_nodeVersion":"24.11.1","dependencies":{"yaml":"^2.8.2","execa":"^9.6.1","json5":"^2.2.3","p-map":"^7.0.4","slash":"^5.1.0","dedent":"^1.7.0","semver":"^7.7.3","ci-info":"^4.3.1","p-queue":"^9.0.1","fs-extra":"^11.3.2","lilconfig":"^3.1.3","tinyglobby":"^0.2.15","zeptomatch":"^2.1.0","glob-parent":"^6.0.2","tinyrainbow":"^3.0.3","config-chain":"^1.1.13","write-package":"^7.2.0","load-json-file":"^7.0.1","@inquirer/input":"^4.3.1","npm-package-arg":"^13.0.2","write-json-file":"^7.0.0","@inquirer/expand":"^4.0.23","@inquirer/select":"^4.4.2","write-file-atomic":"^7.0.0","@lerna-lite/npmlog":"4.10.0","@npmcli/run-script":"^10.0.3"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/core_4.10.0_1765506953418_0.8906135144698946","host":"s3://npm-registry-packages-npm-production"},"readme":"[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n[![npm](https://img.shields.io/npm/dy/@lerna-lite/core?color=forest)](https://www.npmjs.com/package/@lerna-lite/core)\n[![npm](https://img.shields.io/npm/v/@lerna-lite/core.svg?logo=npm&logoColor=fff&label=npm)](https://www.npmjs.com/package/@lerna-lite/core)\n\n## Lerna-Lite Core\n\n#### @lerna-lite/core\n\nThe Lerna-Lite core & utils, basically the shared code used by all commands.\n\n### Installation\n\nFollow the instruction provided in the main [README](https://github.com/lerna-lite/lerna-lite#installation) page.\n\n\n> Options for lerna sub-commands that need filtering\n\n## Options\n\n### `--scope <glob>`\n\nInclude only packages with names matching the given glob.\n\n```sh\n$ lerna exec --scope my-component -- ls -la\n$ lerna run --scope \"toolbar-*\" test\n$ lerna run --scope package-1 --scope \"*-2\" lint\n```\n\n**Note:** For certain globs, it may be necessary to quote the option argument to avoid premature shell expansion.\n\n### **Running with `npx`**\n\nWhen running `lerna` with `npx`, it is necessary to use an explicit \"=\" when passing glob arguments. This is to prevent `npx` from prematurely expanding the arguments.\n\nFor example:\n\n```sh\n$ npx lerna run --scope=\"toolbar-*\" test\n$ npx lerna run --scope=\"package-{1,2,5}\" test\n```\n\n### `--ignore <glob>`\n\nExclude packages with names matching the given glob.\n\n```sh\n$ lerna exec --ignore \"package-{1,2,5}\"  -- ls -la\n$ lerna run --ignore package-1 test\n$ lerna run --ignore \"package-@(1|2)\" --ignore package-3 lint\n```\n\nMore examples of filtering can be found [here](https://github.com/lerna/lerna/blob/c0a750e0f482c16dda2f922f235861283efbe94d/commands/list/__tests__/list-command.test.js#L305-L356).\n\n### `--no-private`\n\nExclude private packages. They are included by default.\n\n### `--since [ref]`\n\nOnly include packages that have been changed since the specified `ref`. If no ref is passed, it defaults to the most-recent tag.\n\n```sh\n# List the contents of packages that have changed since the latest tag\n$ lerna exec --since -- ls -la\n\n# Run the tests for all packages that have changed since `main`\n$ lerna run test --since main\n\n# List all packages that have changed since `some-branch`\n$ lerna ls --since some-branch\n```\n\n_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 the default branch as well as feature branches._\n\n### `--exclude-dependents`\n\nExclude all transitive dependents when running a command with `--since`, overriding the default \"changed\" algorithm.\n\nThis flag has no effect without `--since`, and will throw an error in that case.\n\n### `--include-dependents`\n\nInclude all transitive dependents when running a command regardless of `--scope`, `--ignore`, or `--since`.\n\n```sh\n# example with lerna watch\n$ lerna watch --scope=my-package-1 --include-dependents -- lerna run build --stream --scope=\\$LERNA_PACKAGE_NAME --include-dependents\n```\n\n### `--include-dependencies`\n\nInclude all transitive dependencies when running a command regardless of `--scope`, `--ignore`, or `--since`.\n\nUsed in combination with any command that accepts `--scope` (`ls`, `run`, `exec`, `watch`).\nEnsures that all dependencies (and dev dependencies) of any scoped packages (either through `--scope` or `--ignore`) are operated on as well.\n\n> Note: This will override the `--scope` and `--ignore` flags.\n\nThis is useful for situations where you want to \"set up\" a single package that relies on other packages being set up.\n\n```sh\n# example with lerna watch, watch only package \"package-4\" and its dependencies and run the test script for the package that changed\n$ lerna watch --scope=\"package-4\" --include-dependencies -- lerna run test --scope=\\$LERNA_PACKAGE_NAME\n```\n\n\n### `--include-merged-tags`\n\n```sh\n$ lerna exec --since --include-merged-tags -- ls -la\n```\n\nInclude tags from merged branches when running a command with `--since`. This is only useful if you do a lot of publishing from feature branches, which is not generally recommended.\n","publish_time":1765506953590,"_cnpm_publish_time":1765506953590,"dist-tags":{"latest":"5.7.0"}}