{"name":"@lerna/init","version":"5.6.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":"5.6.0","@lerna/command":"5.6.0","@lerna/project":"5.6.0","fs-extra":"^9.1.0","p-map":"^4.0.0","write-json-file":"^4.3.0"},"gitHead":"07271fe0347052a1505e81c6f08a4f12c4b70c7a","bugs":{"url":"https://github.com/lerna/lerna/issues"},"_id":"@lerna/init@5.6.0","_nodeVersion":"16.15.0","_npmVersion":"lerna/5.6.0/node@v16.15.0+arm64 (darwin)","dist":{"integrity":"sha512-Zr2hha06mtNKFZoowiopyW1OIt+dCfV/NSCCznaf2OGgXJHvhshvsKIDNsMWJnpKS/Yy9udTgQdbcur9f2nCEw==","shasum":"993850e55761429ce6cc6a2db4e5b4767eb5ca9f","tarball":"http://registry-npm.ywwl.com/@lerna/init/download/@lerna/init-5.6.0.tgz","fileCount":5,"unpackedSize":9092,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGInjvXU0w9cXH0EBIcl9ghwxVIgKpOcQfyeNhe5iLpYAiAFZz1UOEjGUKxpuw3VL6RIzyBtJV/I72wb0INa3BUwaA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjNhR8ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrbgA//UQfW/j7NZ5Z2ua9gBIw8Ze3nsi9Njg/bSVtPFjF3Ieodfn6i\r\niAeh9ZZRyWnIvCu3RcYjuMrfXmBodbQ7MyWfFEvKObqiVKVSsfKZBeR/qWgD\r\nW1n8TNiXiBN/ueZ9xHs+6l4xsBwKD4sqlDXt0as3ixibFTF8d5ttkb9I3Mcn\r\n12CLTP10TB6hM2xCNp0n9xSRobuM1nYRGGbsp3LF5amho18ZFwi4NzXZtWtx\r\n82ZTF9oxaOpOzqXEdJacXv4PJaFMRmftxxTWdNZZD5ZPMnNLGhzKcl+T0Lj+\r\n/VnPEBJ+0Wr0Ugt7F3pWA9EEkuKt6ZpDY0WQ+ZJs8FBjlRMzFh1bhYIm6Zdf\r\nCDo2mzGKwJnHVeXWySVLFp1u0g0ZA7BkKz7vrDs7lSnRv3x6Icnji1ljwPkY\r\n8198l8D/e2DXloe0DGiIFgKU+Jc3+DB7upi+bi5sdAJErvTAzMy3gVQIbqJO\r\n2MRP4jHdN8cnAIs7dQcYXS8cIVEUh6k0K8D2GHJ9+tvX2wy/IzG3cvnnDzPG\r\ntYisaQCduo1IxgoIGmilbh3jEe76RUkFcTzCLxOaZTwt3ZZK1CJr3DB0Y0CU\r\nCb5A15xQ3XqAEEwJL+HftTILGblDSAYe3fY2rSNgtVjHY3TFZPSbn4DoBsP3\r\n4WCxztYW0r06bZZzitUt9vraglGpNZqv8+I=\r\n=atmK\r\n-----END PGP SIGNATURE-----\r\n","size":3509,"noattachment":false,"key":"/@lerna/init/-/@lerna/init-5.6.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.6.0_1664488572191_0.6782034372089405"},"_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":1664488572372,"_cnpm_publish_time":1664488572372,"dist-tags":{"latest":"6.6.2","next":"6.5.0"}}