{"name":"@lerna/init","version":"6.5.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":"./dist/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":"packages/legacy-structure/commands/init"},"dependencies":{"lerna":"6.5.1"},"exports":{".":"./dist/index.js","./command":"./dist/command.js","./lib/*":"./dist/lib/*.js"},"gitHead":"0a7ac45bb2b6322e6f20f37c2aa04eae74b553c8","bugs":{"url":"https://github.com/lerna/lerna/issues"},"_id":"@lerna/init@6.5.1","_nodeVersion":"16.18.1","_npmVersion":"lerna/undefined/node@v16.18.1+arm64 (darwin)","dist":{"integrity":"sha512-7qmRqtXaHnTjemDDq2bl0/lBY5N6+T4BrXY/gKx2Omp6t8OehndmciITUEHpBtMZT7nwTthwq7rYsnv4dvk1Pw==","shasum":"8360cc096db2beba0f7129757ce376ba5e493943","tarball":"http://registry-npm.ywwl.com/@lerna/init/download/@lerna/init-6.5.1.tgz","fileCount":6,"unpackedSize":21279,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFd7Sbd3FLOk+euRn0PP9Ik69scCCZn6CukUsgBCXsM0AiB36LGZBxQbPgisycNk53HxUFl/scH4lwE573E0nTh+7g=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj6162ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr+cxAAhmxMwBHL4yYfW53IOpWHuqrG3U+C5oD6qhBY3Zp3ec9zxz5f\r\nvk3sXMA+wenIyZx36jnru5e8iQxTyb7tD1wBxqpRk31/u2VqaW05x5a3rgsb\r\nLyyJhte/LorzkREd0vO2jAKEPhMrpAgpRXZAGjsz1fsl4KBDOsSTczfMaG98\r\n1Zp9SiEBicDSFNpeyVDoy7au1AvTxYTgAWDDOWTASws5NrguT69GCEOZYpjr\r\nUAlv6uI/Qc2f6qV5GhbLg/d6GZKsrzvPRsxKtQwYDV6I80YGsB5jBu8KlmWM\r\nv1+P55/K4XtV8VCdV6HshpBoz7wjKkrPi6Xuigy7ZKumOsOKZzBriDHw5PZ/\r\n0Zc3zE6MKis50UMghQ6XIZhuuZKLDQY2Y8Bts8wc88S1fy5ItTzM99n3NFU/\r\n2lt/3J2DjY2Ps0fV/G3RyLKmt6uQlkhhOJXDPCdGdkpgLIqrOknzYi2n+HTj\r\nPFpc9cQ07LG3wFp7iSRg3nltISFsbNxONixqAgMFLRtLSdWzKDyfArMjtL5E\r\nOhlhcfTcwYnXYcZFxtRonohr30nE0YLVj39qIqkanFTe46FbBi39WxsavVNc\r\n60W/d17uyUOlduHEkM9oj50xNV6YVW/jy0drFvgiFjiRJp5eGqgWiPKPuHi8\r\n6IcgZoQedGBEM81iYPS/sOmY+W6kwbQABbg=\r\n=gkXk\r\n-----END PGP SIGNATURE-----\r\n","size":5426,"noattachment":false,"key":"/@lerna/init/-/@lerna/init-6.5.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_6.5.1_1676369589881_0.9777258890034581"},"_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":1676369590124,"_cnpm_publish_time":1676369590124,"dist-tags":{"latest":"6.6.2","next":"6.5.0"}}