{"name":"@lerna/init","version":"5.1.5","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.1.5","@lerna/command":"5.1.5","fs-extra":"^9.1.0","p-map":"^4.0.0","write-json-file":"^4.3.0"},"gitHead":"ef1ff4b464127ef1b4a0d3845e2e18e0cf37b01d","bugs":{"url":"https://github.com/lerna/lerna/issues"},"_id":"@lerna/init@5.1.5","_nodeVersion":"16.15.0","_npmVersion":"lerna/5.1.5/node@v16.15.0+arm64 (darwin)","dist":{"integrity":"sha512-d5k6p3ct/kDEZXzjUqOKYZFONwigMgg5aUsWv20aB3UbwsFsCujNTVX1rfMRrt7K9TznTEm0zcJjNq01X9bdSA==","shasum":"0ef92fe384bec1b853dcc977d85623e09c9305e1","tarball":"http://registry-npm.ywwl.com/@lerna/init/download/@lerna/init-5.1.5.tgz","fileCount":6,"unpackedSize":20827,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAmgju3wShMwMiyNBfLSh7ZTLgPHW0sIsXdxcxbbukLcAiBv+xlManb7KryKeNzkGqhQsOEP5XzNyRbkyi0AS6zKow=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJitXU9ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr0vw/+IyLmTXfk6OfXb9Dx2GwNOsdE6DKWf/6ebANFKmRlhPlm7cB/\r\nLOIQogi7bIAfAFbNAuj1M6VXFQQi4pfZM2VWpbd9j1R+3blSgD8vjbsCL/vp\r\nFxMg2FgZM1hwbNIK6GWkH4/f6EmJNlzSg5UwbuVw6kJAi0cEZ4O2SqsD2g98\r\nr9QqcDfoC0m/eXyORxtfVDXSroZ80kG8W6nvVGDK1zViR24SVqlYcUDD0T2z\r\nT2wcECulrJkpfwfVtScV8XcSlFhv6e93uDIdFMG+PE7wjSFFRkrzesNaHnrq\r\nN6XZH645JM8PFb8+zXZEG8io9F6q06e+Mgv6zXV1phIWyM5M1UPd6GfPMxVs\r\nc8qFvJiY6bXYjDgFtYOkhSE2/j1R/0mBYy59xkTdJDIueEF2Lkz7vrsxuK3g\r\nDZzs8CXs1J6gpEDitz+ROF88w0RsVEcI74wLSGutF7BlrPTqsJWJTTMMo5Ut\r\nuEkn+RPgNTmUSluw4VLjIlPfXPx8bfwGaaPNgVm7wy0lzXqjDRQKGKZaSY6t\r\njJQGV7Q8fb/6enXxSQPxzvi+LShXaecDF2oWfAzhoVK4ZSSU2BKvxqhaHoJ7\r\nZ/mobvnzJa3la4D9DwJNMxfxMt34hjHoU31DgUdcy/BwUFe+xDj5FaDWqGnp\r\no2wdHiPvZNX7YepLe7q6mMYcRhe5QGmA35s=\r\n=+9k0\r\n-----END PGP SIGNATURE-----\r\n","size":5970,"noattachment":false,"key":"/@lerna/init/-/@lerna/init-5.1.5.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.1.5_1656059197209_0.9623114604786487"},"_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":1656059197365,"_cnpm_publish_time":1656059197365,"dist-tags":{"latest":"6.6.2","next":"6.5.0"}}