{"name":"@lerna/init","version":"5.1.4","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.1.4","@lerna/command":"5.1.4","fs-extra":"^9.1.0","p-map":"^4.0.0","write-json-file":"^4.3.0"},"gitHead":"6369c6d25439e29d003c6cb513058663af2d497d","bugs":{"url":"https://github.com/lerna/lerna/issues"},"_id":"@lerna/init@5.1.4","_nodeVersion":"16.15.0","_npmVersion":"lerna/5.1.4/node@v16.15.0+arm64 (darwin)","dist":{"integrity":"sha512-OdI5iWYT1JcB6f5mjmCjgpkOrpDdSSDzmSi34kp/NP1FkbskDoMffVBTQiV8/h6zAg3jk1+aLQYLMuR5E6nIwA==","shasum":"7f195046e010c566f22d7a81b4167c0df2b88ef9","tarball":"http://registry-npm.ywwl.com/@lerna/init/download/@lerna/init-5.1.4.tgz","fileCount":6,"unpackedSize":20689,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC0aLchy3JL4DiolHmPErnJ0udchqAZ9lJ4EyadvksXFwIhAKXGHe+Dxr9M7B/0n0uS7VRnlzZPhE37/64WfKkX4R31"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiqgkrACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqiAg//XpclJIF+6d1JmfGfFo++LEV6dWzGJm3jmbbfoIYg6FnR8nH1\r\ntD7FS6lMgFlCvg4xQNdwGxhwnaMQfMrxvrbm0LwZTguBrAjR4tS7NqwgMa2T\r\nL/mxk+2L2/YVImSCThfa4JiRBJTgsIxXqXdFg4mi4L0LVTrEJbEL/v7LXRmu\r\nzCl2WDXhFLv00JJ9fX5NNmG5HLfEraIdH7PrOHobKWpiEkwBWTc+gOASrgh9\r\nKLkGBzt43V7WQmNZVu5L4p2ccdWPuub3krjN8UEkisLb3Ocv3LTpGBOWld2p\r\nsVoIWhEYhfs7Nvx/2F594OiEDwrwU6VlvGuXdqiv/D5YkjDftk1K77pGnLsH\r\naSgVgxtBQCPhAm82+IsptG6X/SfGXtJkOxDH4fZjFajrK8948A7seP7H8Dpl\r\nC72P6kgsShyIEMBuUZXFN+Z5eq3/JHfEemzCN/wQyHhSXsBnmzHJ4zU+FuXW\r\nav+du22kJK7QPUXZs2gY8W3nhQIdbA6A/vecQ12uYsQz2cXy3/Kjx3U1cQIY\r\nPQvZ/T2+2AfTQsaOgRU5zb1rXMnO+Qbj1GOHUIrA+ZJb0udzTFbuKkVGKpKI\r\nE/MAILpFZx0e+YZAGyIwGTHVhofpj59cUudA5RpxuMKaEJ2whzwPKJsLQqlY\r\nygWn5S4nINUOiBt/hyvcoseeaSycusPiJmA=\r\n=TvLu\r\n-----END PGP SIGNATURE-----\r\n","size":5957,"noattachment":false,"key":"/@lerna/init/-/@lerna/init-5.1.4.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.1.4_1655310635818_0.30795591200889394"},"_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":1655310635946,"_cnpm_publish_time":1655310635946,"dist-tags":{"latest":"6.6.2","next":"6.5.0"}}