{"name":"@lerna/init","version":"5.0.0-alpha.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":"^14.19.3 || >=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.0.0-alpha.0","@lerna/command":"5.0.0-alpha.0","fs-extra":"^9.1.0","p-map":"^4.0.0","write-json-file":"^4.3.0"},"gitHead":"5451a79392742a6e942a845de1e46db0a41b1c2e","bugs":{"url":"https://github.com/lerna/lerna/issues"},"_id":"@lerna/init@5.0.0-alpha.0","_nodeVersion":"16.15.0","_npmVersion":"8.10.0","dist":{"integrity":"sha512-iU/dZJqTqez9dVjG7fFK/UBL6HYkOrJGX+VIeNU+9/MM/QykyAs0ApXzvUtKv5owjRC27NhLs2NuqFu9NqLUKw==","shasum":"e215d1dbbe7d1e9d37bad767cf0c6e5fce67953f","tarball":"http://registry-npm.ywwl.com/@lerna/init/download/@lerna/init-5.0.0-alpha.0.tgz","fileCount":4,"unpackedSize":6614,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCvVdVskur/3dSbbz/LE1v/q1hbk8AjgmNQyrXqwXbMeAIgbacPE4HGn56id1gPwIOVwJcpjINRdX4cVHX45t4ZlVk="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJijHnIACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoOrhAAlz63OE4bSQD2skxRLyBWkaezLaj1WPVQrRScmnWdkr7cSA2K\r\nMS1eISrrWP+F2e9DFN6gX9OPR+Pkm8kHyZVKJCS2yjyJxcQ/wPW8p8vnpOO2\r\nKC78vglGydeZxNeLtFmaocLCF5PPuSoDfqDoemSHzXaDf5uIfO1Cdaci6S40\r\nCbLZtPcIc2Y+8fyP4JesogXbzA3HP9j+T5iPlWXysqSo5ko1tWYm0zEsGsYt\r\nWLscTE++Q/mhCiZhJ0MDXgxiYra7lkqXucWfU7K4hSe42IAuZFiusDYz/LLj\r\njwo1MfOJ1TuzyJTUj9826K4I1IhZSiWJ1XEeZCItiCz2sSAGHnQvmSh4u7df\r\n57Xq7e6FLXK5xwaOFq+NNa9xm+kOMtCEdmWWyFaa+RphSxvgy66FY54MYLeY\r\nhQ8jxVibfxl+KiGRq1VOekQ9qeMpEOvX5PXMvU00aZ71bWq6n7Hec0tZ2HTB\r\n2RBAxjhyWJOxhbF1JXoC10PRM3MiVxcMGyVabZMBW4Q5XvqJ2u72wuJsuK71\r\nr32mM5Ib/YBX1qMl/jWlJUMnAB+xpj/ibBuBqDlIuafk86u9Dj/I/p3lSsJa\r\ntcGa2ZpOWzTU2lD0LZvZ0l4L8sbmNaPfeHxVVTFgmL+LSghuC1N9FHmxzU9e\r\nsG88CWcmnG6Zv6TzMSyzOY+dSwP/ZnkphYw=\r\n=6HBO\r\n-----END PGP SIGNATURE-----\r\n","size":2515,"noattachment":false,"key":"/@lerna/init/-/@lerna/init-5.0.0-alpha.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_5.0.0-alpha.0_1653373384192_0.19043856982132135"},"_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":1653373384325,"_cnpm_publish_time":1653373384325,"dist-tags":{"latest":"6.6.2","next":"6.5.0"}}