{"name":"@lerna/init","version":"6.2.0","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":"6.2.0","@lerna/command":"6.2.0","@lerna/project":"6.2.0","fs-extra":"^9.1.0","p-map":"^4.0.0","write-json-file":"^4.3.0"},"gitHead":"e057f56e15562496249d8d0a1e3516bd507536fd","bugs":{"url":"https://github.com/lerna/lerna/issues"},"_id":"@lerna/init@6.2.0","_nodeVersion":"16.15.0","_npmVersion":"lerna/6.2.0/node@v16.15.0+arm64 (darwin)","dist":{"integrity":"sha512-qQxIts45FyWWlrMnqQvprITq8ymvPvEWfmOFT1IXZDAAMF8jUze1x9ywyLjdYoItkNwYJnAcJ8yQXd6xK+/Hrw==","shasum":"2e4900f5e6fdea952864d4e5cd56e18a7cd6adb0","tarball":"http://registry-npm.ywwl.com/@lerna/init/download/@lerna/init-6.2.0.tgz","fileCount":5,"unpackedSize":9174,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC8e6/7AD8YtxZzaUEnEXj5aSN9Xqe5dEBOhnT2+19XOQIgZlHFYDpBXfQB+sv1W0Fuzh4H6ug4kQjUQds4NxSfyus="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjmHWHACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrGNw//X39Y/TsPF5GlVKI3BDRWiDXgx0ybotkwXqyAdWsniw+XgPyC\r\n3FRWYj6wQNyfZ+kyW1SalzZaK0DiB3sCpFjBBzkJGh2CZPRGYybRKKJbVnNX\r\nLkfsE4UJOXsawD3qhYmJBjzJH2e6UoK+k7+uaAVMmOEzxBKg/+awdQpBr+mc\r\n/x/gxJS9PQCQNa8jCNwPDdWckCZFGWVmK4q4Cs+bHMuZOMKMfcjY6ZK6142b\r\nx4oqHyRUE+71VvyzAkQ+me/jfUI3Po/QliOzYqmWatKrSQiC/i1cDQHcd1xU\r\nyhkh0psC8mnSPSo4+RrpIm53yQcTCxdm06fTG4A2cycYxWArxzvua7biUuvn\r\nHdIgXreem5cUOs2da6wEsvwVksTaXq5m1WP0NbemQMudixddwdL4Zi4QqAvJ\r\ns0spkOzXzQGZsq1EeJmKcy8u0lns9fWJrDEHdLm4mIR1s+aYwN+QyfIss3zz\r\nn1meUuUw3B7igjUkeHPAmNcPsQF7cQAFJUogPzpjk4BL/NxrKYblMlftRNi/\r\nv1kGzWbWy1rYyK8TyQ64rfsPf7mfL+a7NF44MdcvgiaQwqN26N99q8iQgKjj\r\nTns0rCUkc49SAgT2F1Alc0Oeu8VdQecxami3knYf+eC2hdq88FxSsgSqA2YA\r\nFJDEuhMJwLXZMob0uKQYqQ64HWnH7ixnOzc=\r\n=iLu/\r\n-----END PGP SIGNATURE-----\r\n","size":3549,"noattachment":false,"key":"/@lerna/init/-/@lerna/init-6.2.0.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_6.2.0_1670935943824_0.7763911268984238"},"_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":1670935943965,"_cnpm_publish_time":1670935943965,"dist-tags":{"latest":"6.6.2","next":"6.5.0"}}