{"name":"@lerna/init","version":"5.4.1","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.1","@lerna/command":"5.4.1","@lerna/project":"5.4.1","fs-extra":"^9.1.0","p-map":"^4.0.0","write-json-file":"^4.3.0"},"gitHead":"888d21d673edb6c25e076cb1e5fc7aeb07b40520","bugs":{"url":"https://github.com/lerna/lerna/issues"},"_id":"@lerna/init@5.4.1","_nodeVersion":"16.15.0","_npmVersion":"lerna/5.4.1/node@v16.15.0+arm64 (darwin)","dist":{"integrity":"sha512-aEd33Z1S9cKGQlX9cZv3U3gOy2CbErDUVs9WmsP6E8Yzuqy5Qqk2kvyUIIsOtOjzPBgzJPnVp6aGG8uMind6wQ==","shasum":"157d87deac92f817cf8250b97fca868634eb923c","tarball":"http://registry-npm.ywwl.com/@lerna/init/download/@lerna/init-5.4.1.tgz","fileCount":5,"unpackedSize":9092,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDABdMVCBj5JflGOpDJOmbvUqVE/ebn6mWaAubFH6RSlgIgIW8PWwQXymc40R12KAbwyy2AHenRrqlkZOlu+qlKvzI="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi9lXqACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqB7A/+K9HqC00QXcfXB+0s1eLJOL+nJOv5CuqGHAWt1s1PgSII9UNN\r\nVce52243mAjqbdXjrkdvr8HvpSUrtpRPa8J0j+zu5ZF8LnqHTvLc9RlaVZ2r\r\n1OFom08/ZJZQK+lXEXJpHtVsP/womZ84j/osB3pW4hR+IFNrSO3WxXdhjQqp\r\nrHANsSlQMvFehgGS5VN++Gplc5YRhTqqdxdRIpBoRtjYfaLFtmtIKQte4UDx\r\npnD1qIX51mMipcUCILHdE4YbG4z9pYoVfYb3p25EcILmI4/GEMQOSFB1pLAm\r\nFifAvSuvQ9tPCWbJ7NFfxpUp2CbBiV9zVYuJw06WsSrwxfmg4uBR9ski6Zot\r\ntGhcPYWiZoUoCFDmEfYvW0Oi3HzvdDPoEiDfv4ztH/H4JQOI/JHTR316TYD8\r\nxviU6P8SFmaESd83JkupshYpRD4Nu7SCTFb5JjnnR6dBrLzgs6jn0KpFCKq7\r\n8o01JU/3NFVcTr9Hxa1b0m23F/uyeiuiYDyDdqKjNBhOTGo6PEnF+IssQ8N7\r\nzgmJb/92iBoucaFys5bD4cevrgo3GwTZQFvPv3D8RZ0tZGVeONu5Qvdogy1D\r\nxBN+xanc04WsmgyjB3OHNhhUaKhd6pcNzyh6ppR+3kP09qBIJ84OSQz2X9OU\r\nIORJpHsVzfHuWBVpooK7v9iS1fFO6cEQD9M=\r\n=O4TP\r\n-----END PGP SIGNATURE-----\r\n","size":3508,"noattachment":false,"key":"/@lerna/init/-/@lerna/init-5.4.1.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.1_1660311018312_0.9170653136786642"},"_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":1660311018502,"_cnpm_publish_time":1660311018502,"dist-tags":{"latest":"6.6.2","next":"6.5.0"}}