{"name":"@lerna-lite/core","version":"2.0.0","author":{"name":"Ghislain B."},"license":"MIT","_id":"@lerna-lite/core@2.0.0","homepage":"https://github.com/lerna-lite/lerna-lite","bugs":{"url":"https://github.com/lerna-lite/lerna-lite/issues"},"dist":{"shasum":"ea9ba31dd68cc87c45434a973bec88fd5af52c6e","tarball":"http://registry-npm.ywwl.com/@lerna-lite/core/download/@lerna-lite/core-2.0.0.tgz","fileCount":165,"integrity":"sha512-A602CgKjHoHPPcnBfggroxwVuZH8XJyn+hrslX+GiEZO6pziiuMuIA9eXMJEoK23Afbmp51B178MsDae2VfsIg==","signatures":[{"sig":"MEYCIQCO3rFgcIUZcIT/CZ9zdyNq1Blb69fOPHZjhrSpoAfOQAIhALFz9lq1yb61t6qSu97D1G3n6r95QcKsujSGV3Ye93+m","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":218890,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkOMbAACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrIOQ//WFoj8FSIGdqSQdtPvGoPAT2K6Xyylkhp2P8yr1WNE1kjTGKK\r\nxpHk3HFEnfssc1sIOe8U+JqoPQLxTLmi7zEmcK+0gfFHdlpp1qJMZmpwvBpG\r\nfTDtc53d5HxZ2A2IU2xUWDqAJWlSHOnpPpBSVRznsNE/HKM8Feqa2k1Gq7Gw\r\n0wv1mWpfeg/rYrtfzhyRKq2P8MKCCgEFoUwesT9Jm6I1Q8PQtUpqPTTu4rqM\r\nIiQBofcrvbt8Pft3OmHDO0zUioQPZOUgNrUFXsOwe+53QRc4Cm7tjK5sTgin\r\n9x9MLEW7QKYjcOC49eQGFQoR8K5OiGmHvDHASAv36ZJbABYctFQvsarpNRo/\r\nwECqrEaU2WFMLjnHsDIzpxKh15sakiujL89N7m/GwLV36gTeynQxn1gjwiEe\r\n7Pob7+FrLxJtpDh8bZI9jt2NW3tmNMf/E0BI5eChUHkp6tpnD22bnV6VRmfl\r\nm5xNGIyt2wdNQe7LbIz1uSboIONXtZt1jxU2lbTsMqd6kQc7Y96sqIQ7ZFgR\r\ntQWNRDVEJ9Bo3Vuc11FcMcbTDlq4WxNfMyKoALQdOZk1SAHA8Tv10Ppwr+BU\r\njruuneWRoqu2KDpXqHA/Ekpfk1pw4L25OT0g0xHOMP5gPpIQIbwjzNr9d0Q4\r\nNshZMEhBLzzLbh2BHnu3KF7PFwmQI/NF2s4=\r\n=71uo\r\n-----END PGP SIGNATURE-----\r\n","size":53750,"noattachment":false,"key":"/@lerna-lite/core/-/@lerna-lite/core-2.0.0.tgz"},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","module":"dist/index.js","engines":{"npm":">=8.5.0","node":">=16.15.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"},"./*":"./*","./cli.js":"./dist/cli.js","./dist/cli.js":"./dist/cli.js"},"funding":{"url":"https://ko-fi.com/ghiscoding","type":"ko_fi"},"gitHead":"95237d601339ac61a74983ee379b17e04f81582b","_npmUser":{"name":"ghiscoding","email":"gbeaulac@gmail.com"},"repository":{"url":"git+https://github.com/lerna-lite/lerna-lite.git","type":"git","directory":"packages/core"},"_npmVersion":"lerna/2.0.0-alpha.2/node@v18.15.0+x64 (linux)","description":"Lerna-Lite core implementation module","directories":{},"_nodeVersion":"18.15.0","dependencies":{"chalk":"^5.2.0","execa":"^7.1.1","is-ci":"^3.0.1","p-map":"^5.5.0","slash":"^5.0.0","dedent":"^0.7.0","globby":"^13.1.4","npmlog":"^7.0.1","semver":"^7.4.0","p-queue":"^7.3.4","fs-extra":"^11.1.1","inquirer":"^9.1.5","minimatch":"^9.0.0","write-pkg":"^5.1.0","clone-deep":"^4.0.1","cosmiconfig":"^8.1.3","glob-parent":"^6.0.2","config-chain":"^1.1.13","resolve-from":"^5.0.0","load-json-file":"^7.0.1","npm-package-arg":"^10.1.0","write-json-file":"^5.0.0","write-file-atomic":"^5.0.0","@npmcli/run-script":"^6.0.0","strong-log-transformer":"^2.1.0"},"publishConfig":{"access":"public"},"typesVersions":{"*":{"*":["./dist/index.d.ts"]}},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/core_2.0.0_1681442495996_0.3132443165274532","host":"s3://npm-registry-packages"},"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":1681442496261,"maintainers":[{"name":"ghiscoding","email":"gbeaulac@gmail.com"}],"_cnpm_publish_time":1681442496261,"dist-tags":{"latest":"5.7.0"}}