{"name":"@lerna/init","version":"5.1.3","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.3","@lerna/command":"5.1.3","fs-extra":"^9.1.0","p-map":"^4.0.0","write-json-file":"^4.3.0"},"gitHead":"5a73603cf629ce0d5b71cf4cf703ccd82cf375db","bugs":{"url":"https://github.com/lerna/lerna/issues"},"_id":"@lerna/init@5.1.3","_nodeVersion":"16.15.0","_npmVersion":"lerna/5.1.3/node@v16.15.0+arm64 (darwin)","dist":{"integrity":"sha512-De2hRFKaJ3yiDRENp6YjXibMOYVKGYidD4NLBuve9ZV+JAFh4Og4k6mkjwtkJSawr+mKHibbXp+q/dr7xPC+Eg==","shasum":"947a17d7f4ec2e80ced7ceaf8d418c27535c0e45","tarball":"http://registry-npm.ywwl.com/@lerna/init/download/@lerna/init-5.1.3.tgz","fileCount":6,"unpackedSize":20551,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQChVQvfMlQ5Xk7eNEPan7fTIB9UkwqftGhj413WH07zoQIhALySIwfihU5AH46HL0rOqu/RjGQxXjGXJbikhpfI+hsO"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiqfYjACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq8PxAApRubfh5xYvH3SdrgBQPt3+wXKi63hHT0wI++oumHjood6yjK\r\nrLwVsQnkZ+Xr8EYZfP5SU0MIEFVZvbm1bjnxn+eNRrvrQSFhBc90f9lnw4AZ\r\nlb945esJAo1whnj/n2uFJpjvpE5uQCmULrJ2w5zYbiJ4D7yvNXnbq7FSQP7R\r\nmQT0iqopiN4LlvSZbb/0h42yjUF1h7yFXrz7UR2yuSyF+AQ3W0YAeojjCR/q\r\n6LYX+EMhJxOLY1lpfoVMRsSVa3BhggBrRPzsNprjiJ9XMKdUigdP0jKcVUrE\r\n/710QG+WsDo+q36owWxAj9PDSBN6hT7+hLsFhFVhR+ns02LpUsXKVXVljMBH\r\nnJ8KiV8/J6bfUOF4zcX+iFuqzAY1qQSN23yrjw6OnF80u+iPRpmjift8ZDoO\r\nBwJkqQTeEL4AwO6UN7zV0JXJ9yFmGbDdKv+0WTOhpJijJdOxOq4kQXBnRP/9\r\nXGauZmHHGA+nhH+7fFFdDbamZtX6AxAnFb3Nc46voQQqR4SmcjGJY0R6zwr5\r\n/Q5gPOyaXJiP6n3csaj+qG8475t3qqIHQSj88KdOcfwL2TTeokqngSHl1WXj\r\n+ZRxQy2EFZOAlrZJt0faWsmkIL5h9qHtaO+XkyuS2xQoTTCZT2DUqI9aKTpT\r\n+96VvFGH+R6W6ntx14MrmaaEds30EPdOrbY=\r\n=b7o+\r\n-----END PGP SIGNATURE-----\r\n","size":5947,"noattachment":false,"key":"/@lerna/init/-/@lerna/init-5.1.3.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.3_1655305763436_0.4601167654771252"},"_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":1655305763616,"_cnpm_publish_time":1655305763616,"dist-tags":{"latest":"6.6.2","next":"6.5.0"}}