{"name":"@lerna/init","version":"4.0.0","description":"Create a new Lerna repo or upgrade an existing repo to the current version of Lerna","keywords":["lerna","command"],"homepage":"https://github.com/lerna/lerna/tree/master/commands/init#readme","license":"MIT","author":{"name":"Daniel Stockman","url":"https://github.com/evocateur"},"main":"index.js","engines":{"node":">= 10.18.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":"4.0.0","@lerna/command":"4.0.0","fs-extra":"^9.1.0","p-map":"^4.0.0","write-json-file":"^4.3.0"},"gitHead":"4582c476e07dddddd6b2e3ab6e7f52c1f9eed59a","bugs":{"url":"https://github.com/lerna/lerna/issues"},"_id":"@lerna/init@4.0.0","_nodeVersion":"14.15.5","_npmVersion":"lerna/4.0.0/node@v14.15.5+x64 (darwin)","dist":{"integrity":"sha512-wY6kygop0BCXupzWj5eLvTUqdR7vIAm0OgyV9WHpMYQGfs1V22jhztt8mtjCloD/O0nEe4tJhdG62XU5aYmPNQ==","shasum":"dadff67e6dfb981e8ccbe0e6a310e837962f6c7a","tarball":"http://registry-npm.ywwl.com/@lerna/init/download/@lerna/init-4.0.0.tgz","fileCount":6,"unpackedSize":19553,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgJGFHCRA9TVsSAnZWagAAAV8P/i+AoUeXxMWsKkESvh7C\nEYJ0o9cbnuC614fCgFoYfZAYhkO+qugZ44gQ4+YGnx42xuaoGQDw64sJZlAu\nPfBoXGvQQWZb6n3eYAE4s3aRNtq38iIGkwK4TZUFGOjdQEpbkOyeHSDX2BYk\nKGxFcR6XFc1bobYyOeoAT7/21LS5P+Ah7rDZ9kYrjoaDVVBuKpHxIYJZs4xd\nU+xl41N2uTGxpCWrd0KjTLEtcC08YxpjNTNP+Dk5KLCt4xysSHI3CccYVdIf\nYCcYcn/kw2QEz3hKlqp9MBEfUFHH9skVUteg5mY9g+foOwp+pORZ1tZDpCZJ\nnzG0/l7nP/rqTc5zvH3ROVMFLhAghlV4UWjuu3VZrIzEV89DBraec6TBaaA4\nvyFGCTGR4azI904iplaVQQNq7uEmelgKhWXunvcXvbE0c2diJZUlX+CIJZeK\nHEiWJJYr3t45iu/4px5YHKeOyurP1fHe2+jddfI5elCDWJTZMglAnJTIlWPx\n5HNW2fmzXy9XuP66HB0R/0+ZjrtTFBlLU6gtKbcURqiW0ZwHVU9tqgdcDn1F\ne9gDkoheT0c2RmSDygaU4ib7yXlRn5ZPfekztz6Sw1Z9RsJgxTy055zvCMO4\nV1w5Sp0q6HFrmOTIeB8hQmkIl36mYxKXi4Fv6bSu+R9B4EyFn0ZI4K93P0Wj\noDLx\r\n=77ai\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH9eyQs6bRsziqW9plWLMvyrJ7ZizdzrGDLRlPJcfpzTAiEA7rlAFmfw2BMVlfbAxmEJ8j7RtnebMFNsXyXiNODLCkA="}],"size":5740,"noattachment":false,"key":"/@lerna/init/-/@lerna/init-4.0.0.tgz"},"_npmUser":{"name":"evocateur","email":"daniel.stockman@gmail.com"},"directories":{},"maintainers":[{"name":"hzoo","email":"hi@henryzoo.com"},{"name":"evocateur","email":"daniel.stockman@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/init_4.0.0_1612996935271_0.9191255476276279"},"_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":1612996935389,"_cnpm_publish_time":1612996935389,"dist-tags":{"latest":"6.6.2","next":"6.5.0"}}