{"name":"@lerna/init","version":"5.4.2","description":"Create a new Lerna repo or upgrade an existing repo to the current version of Lerna","keywords":["lerna","command"],"homepage":"https://lerna.js.org","license":"MIT","author":{"name":"Daniel Stockman","url":"https://github.com/evocateur"},"main":"index.js","engines":{"node":"^14.15.0 || >=16.0.0"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/lerna/lerna.git","directory":"commands/init"},"scripts":{"test":"echo \"Run tests from root\" && exit 1"},"dependencies":{"@lerna/child-process":"5.4.2","@lerna/command":"5.4.2","@lerna/project":"5.4.2","fs-extra":"^9.1.0","p-map":"^4.0.0","write-json-file":"^4.3.0"},"gitHead":"c838ca868b983efdf382d7c145149b14e3252726","bugs":{"url":"https://github.com/lerna/lerna/issues"},"_id":"@lerna/init@5.4.2","_nodeVersion":"16.15.0","_npmVersion":"lerna/5.4.2/node@v16.15.0+arm64 (darwin)","dist":{"integrity":"sha512-b9rLqkO22LL2eKs7+b95gkon8NE153X1jKbCxIzN2GsquKKKePFMjSE7LsUo8ZrstJS5i9rOT7yrzuLKynp7aw==","shasum":"6c1b45e997e96260983ff2a511edb01228174bb9","tarball":"http://registry-npm.ywwl.com/@lerna/init/download/@lerna/init-5.4.2.tgz","fileCount":5,"unpackedSize":9092,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEtjf/5ceKRANsyklujKHiivicUC780drfGnz9rQsvPzAiEAiloAQu0JdevS3HYbG9w/8u6UO9peoIL/LEbI3DwP8ys="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi+QHYACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrMPRAAg1gf2hjNSZvmcYG25CW2/G3gdbYWgKdesJBuYa33D60BPeeb\r\nWRULaRFzuFfFRuVk+HEJ6wH/TzANaMLq/+NctpMF/Yj57RL6CUpH62ZuXe+P\r\n7b2HVaoZETQ8moPsjB/8jSiqWPPaZ8FjMPk10Qr2MzZNyWj8HiPuBhNRP/Xu\r\nGyFD5Ytq4SQUn0VEMJuo3Xmp/gdGp8NyvJnvlnI1eURIQ/05h3zc0ukBttoa\r\n/6nCIcgryhbI2HWAgECxXShr5EhG3E48wMaFeciAaL49nJNBoDw8aC2yLyJz\r\n8ckH0ILj4b+n697FbY1Rjr6eqmGX1Uf2wnUySF781uqODDUlOLeP0LD6ptsy\r\nHkaGEegA/WyIcSSndfFXJ4Gp+Qt3sWs143IFj2/2McVFc8dCxXDuDkB7EUhV\r\n0thBGXYKLZcu0gt/MG0kOBwQN+KZvuv39HvGeuYqB4oc2f7M5+yOfEfAxgE8\r\naqQElu4WajY5kKrzn+iyWEnssDxeEmSdZF33cKa7lo5aEVPnEUyXlcXtKBP2\r\nerzGQ4pv09VXHhw6DcSsAc0iAnNWxG58OQ5aL1+KQGEeGz11CTgR0tLVqTFK\r\nkZ9jD4E/a9ifqgOseXSpPfoqfyv2Jw5YQuayJd7H+Y8W/CRl/e5T9tcajIzz\r\nbMD9cJGdc0dClvg1+jr8CHroxtv/Sl4AmdQ=\r\n=ce6w\r\n-----END PGP SIGNATURE-----\r\n","size":3512,"noattachment":false,"key":"/@lerna/init/-/@lerna/init-5.4.2.tgz"},"_npmUser":{"name":"jameshenry","email":"npm@jameshenry.email"},"directories":{},"maintainers":[{"name":"jameshenry","email":"npm@jameshenry.email"},{"name":"nrwlowner","email":"hello@nrwl.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/init_5.4.2_1660486104484_0.8303796821214702"},"_hasShrinkwrap":false,"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","readme":"# `lerna init`\n\n> Create a new Lerna repo or upgrade an existing repo to the current version of Lerna\n\nInstall [lerna](https://www.npmjs.com/package/lerna) for access to the `lerna` CLI.\n\n## Usage\n\n```sh\n$ lerna init\n```\n\nCreate a new Lerna repo or upgrade an existing repo to the current version of Lerna.\n\n> Lerna assumes the repo has already been initialized with `git init`.\n\nWhen run, this command will:\n\n1. Add `lerna` as a [`devDependency`](https://docs.npmjs.com/files/package.json#devdependencies) in `package.json` if it doesn't already exist.\n2. Create a `lerna.json` config file to store the `version` number.\n3. Generate a `.gitignore` file if one doesn't already exist.\n\nExample output on a new git repo:\n\n```sh\n$ lerna init\nlerna info version v2.0.0\nlerna info Updating package.json\nlerna info Creating lerna.json\nlerna success Initialized Lerna files\n```\n\n## Options\n\n### `--independent`\n\n```sh\n$ lerna init --independent\n```\n\nThis flag tells Lerna to use independent versioning mode.\n\n### `--exact`\n\n```sh\n$ lerna init --exact\n```\n\nBy default, `lerna init` will use a caret range when adding or updating\nthe local version of `lerna`, just like `npm install --save-dev lerna`.\n\nTo retain the `lerna` 1.x behavior of \"exact\" comparison, pass this flag.\nIt will configure `lerna.json` to enforce exact match for all subsequent executions.\n\n```json\n{\n  \"command\": {\n    \"init\": {\n      \"exact\": true\n    }\n  },\n  \"version\": \"0.0.0\"\n}\n```\n","publish_time":1660486104634,"_cnpm_publish_time":1660486104634,"dist-tags":{"latest":"6.6.2","next":"6.5.0"}}