{"name":"@lerna/init","version":"3.21.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":">= 6.9.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":"3.16.5","@lerna/command":"3.21.0","fs-extra":"^8.1.0","p-map":"^2.1.0","write-json-file":"^3.2.0"},"gitHead":"3367257cabe1540a3b9468acbfa0d01ba391077d","bugs":{"url":"https://github.com/lerna/lerna/issues"},"_id":"@lerna/init@3.21.0","_nodeVersion":"10.19.0","_npmVersion":"lerna/3.20.2/node@v10.19.0+x64 (darwin)","dist":{"integrity":"sha512-6CM0z+EFUkFfurwdJCR+LQQF6MqHbYDCBPyhu/d086LRf58GtYZYj49J8mKG9ktayp/TOIxL/pKKjgLD8QBPOg==","shasum":"1e810934dc8bf4e5386c031041881d3b4096aa5c","tarball":"http://registry-npm.ywwl.com/@lerna/init/download/@lerna/init-3.21.0.tgz","fileCount":6,"unpackedSize":18342,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeu0RvCRA9TVsSAnZWagAAy0QP/i0fdYcu2TpnOUQeBeQ8\n6Qbe1k2qEb2mo19uM46qK9JmxerESEA/UkC1ro89Wteftg3nXJ+YKsfpOdhy\nou3K0M4OWArIg+vSIWCPiT00ypvWrxroR7rF1u28z45ngsiE2hHX7AvU/HNc\nkaBdqXKEI0KRIjkkaRrTuqPNNhEtdoNNFnir5+UazroA1ZsBUjrNNIODJE6y\nP/rktwhV4TSvV9+A8ukqC4VlyRgyMmGcWXMmpVEwHD7urCqRwFDqHorJDfkK\nfWGai2IcbhqfSt2IdwHw6oZdsVMHRDQu/5tOKDn8DcJ75TxTvnXvzouyqwJM\nHbxvfcJBsM6EZ3K25SXL9RN6pQx8pdwIrj15Wwvw5xgU+rBxiLcOp9XRZpLp\n5ZLat2COIaqveLxeWyMmPLUlMk0szaSEgWJPezWeRboHSEt/KL/CgpHdLUH4\nOzXEDzQGM9GdQ9MgVccNdORpo6IK5FWYouV6l/UKr6VrUgyljJQlo4PbIXeV\nyUsMcvNmqlLL8L50YhbC4YVvjfP+a3wvpnmP90Dnj/O/T6L4hlSANVkLCAs3\nOHeC/H4snfctoK4rFlQ8aefmhbZkOq9oebw9egH7mSe+9F+W5pIZQ14dWwX1\nDKOsUIdXDjVuoxQQGy0NnKv4yRhGaFwK3EugJze8Mie4fQpUwtEPi0eUC1PK\nh0UE\r\n=mfQ2\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD49xdvpMJKXEh4/mvcH5kppekTelECNjInFzm0t93a4QIgbwI/NQcyLiubyKgSdY1wFT5/iw66FysyHceKpD4XV6I="}],"size":5252,"noattachment":false,"key":"/@lerna/init/-/@lerna/init-3.21.0.tgz"},"maintainers":[{"email":"daniel.stockman@gmail.com","name":"evocateur"},{"email":"hi@henryzoo.com","name":"hzoo"}],"_npmUser":{"name":"evocateur","email":"daniel.stockman@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/init_3.21.0_1589331055287_0.6190200354484254"},"_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":1589331055447,"_cnpm_publish_time":1589331055447,"dist-tags":{"latest":"6.6.2","next":"6.5.0"}}