{"_id":"@alienfast/find-monorepo-root","_rev":"3-9b2b21d23a2759f33b523dad9db56928","name":"@alienfast/find-monorepo-root","dist-tags":{"latest":"1.0.9"},"versions":{"1.0.6":{"name":"@alienfast/find-monorepo-root","version":"1.0.6","packageManager":"yarn@3.6.1","description":"Find the root path of a monorepo using various strategies.","type":"module","main-note":"Though this is ESM only, the following main is to appease tsc and varieties of moduleResolution e.g. node vs nodenext, otherwise types aren't found. see https://github.com/rosskevin/ts-esm-workspaces/tree/bug-main-required-to-build#workaround ","main":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"sideEffects":false,"publishConfig":{"access":"public"},"scripts":{"build":"yarn clean && tsup-node","build:ide":"echo 'tsc -b' && tsc -b","clean":"node ./scripts/clean.js","clean:yarn":"node ./scripts/clean-yarn.js","reset":"node ./scripts/reset.js","lint":"eslint . --cache --ext .js,.ts,.tsx","lint:fix":"eslint . --cache --ext .js,.ts,.tsx --fix","test":"vitest","release":"yarn auto shipit"},"keywords":["monorepo","find","root"],"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/mit-license.php"}],"repository":{"type":"git","url":"git+https://github.com/alienfast/find-monorepo-root.git"},"homepage":"https://github.com/alienfast/find-monorepo-root","bin":{"find-monorepo-root":"dist/bin/findMonorepoRoot.js"},"devDependencies":{"@alienfast/eslint-config":"^4.0.7","@alienfast/tsconfig":"^1.0.1","@auto-it/all-contributors":"^10.46.0","@auto-it/first-time-contributor":"^10.46.0","@auto-it/released":"^10.46.0","@types/fs-extra":"^11.0.1","@types/marked":"^5","@types/marked-terminal":"^3.1.3","auto":"^10.46.0","eslint":"^8.43.0","eslint-config-prettier":"^8.8.0","eslint-import-resolver-typescript":"^3.5.5","eslint-plugin-eslint-comments":"^3.2.0","eslint-plugin-import":"^2.27.5","eslint-plugin-jest":"^27.2.2","eslint-plugin-n":"^16.0.1","eslint-plugin-prettier":"^4.2.1","eslint-plugin-react-hooks":"^4.6.0","eslint-plugin-simple-import-sort":"^10.0.0","eslint-plugin-storybook":"^0.6.12","eslint-plugin-unicorn":"^47.0.0","eslint-plugin-unused-imports":"^2.0.0","execa":"^7.1.1","husky":"^8.0.3","lint-staged":"^13.2.2","npm-run-all":"^4.1.5","prettier":"^2.8.8","rimraf":"^5.0.1","tsup":"^7.1.0","typescript":"^5.1.3","vite":"^4.3.9","vitest":"^0.32.2"},"auto":{"plugins":["npm","all-contributors","first-time-contributor","released"]},"dependencies":{"find-up":"^6.3.0","strip-json-comments":"^5.0.1"},"author":{"name":"Kevin Ross","email":"kevin.ross@alienfast.com"},"types":"./dist/index.d.ts","gitHead":"6b650499a14db41b4218f12bf5b642a3c6063e31","bugs":{"url":"https://github.com/alienfast/find-monorepo-root/issues"},"_id":"@alienfast/find-monorepo-root@1.0.6","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-48YcID5JSr3VvMbBxKamd9WBlUkVz9RAxfDLmfb72Cbg7MtYr7XquBkjQQsKKSyNqXsMz7sunmEPfzS8igUS5Q==","shasum":"bebb6dabac23b7874b1420fa6c4c64c562d90603","tarball":"https://registry.npmjs.org/@alienfast/find-monorepo-root/-/find-monorepo-root-1.0.6.tgz","fileCount":73,"unpackedSize":16970,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFLv6sQa8UlZl4O8vp6C2p5gpSF/myT5CYaiWO50EldOAiEAsYJqyaWJyD76P9KkbZ7O6CjEunqia3jBiEJ8FRD7mg0="}]},"_npmUser":{"name":"rosskevin","email":"kevin.ross@alienfast.com"},"directories":{},"maintainers":[{"name":"rosskevin","email":"kevin.ross@alienfast.com"},{"name":"blake.mcdaniel","email":"blake.mcdaniel@alienfast.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/find-monorepo-root_1.0.6_1693069623810_0.36397386202218573"},"_hasShrinkwrap":false},"1.0.7":{"name":"@alienfast/find-monorepo-root","version":"1.0.7","packageManager":"yarn@3.6.1","description":"Find the root path of a monorepo using various strategies.","type":"module","main-note":"Though this is ESM only, the following main is to appease tsc and varieties of moduleResolution e.g. node vs nodenext, otherwise types aren't found. see https://github.com/rosskevin/ts-esm-workspaces/tree/bug-main-required-to-build#workaround ","main":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"sideEffects":false,"publishConfig":{"access":"public"},"scripts":{"build":"yarn clean && tsup-node","build:ide":"echo 'tsc -b' && tsc -b","clean":"node ./scripts/clean.js","clean:yarn":"node ./scripts/clean-yarn.js","reset":"node ./scripts/reset.js","lint":"eslint . --cache --ext .js,.ts,.tsx","lint:fix":"eslint . --cache --ext .js,.ts,.tsx --fix","test":"vitest","release":"yarn auto shipit"},"keywords":["monorepo","find","root"],"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/mit-license.php"}],"repository":{"type":"git","url":"git+https://github.com/alienfast/find-monorepo-root.git"},"homepage":"https://github.com/alienfast/find-monorepo-root","bin":{"find-monorepo-root":"dist/bin/findMonorepoRoot.js"},"devDependencies":{"@alienfast/eslint-config":"^4.0.7","@alienfast/tsconfig":"^1.0.1","@auto-it/all-contributors":"^10.46.0","@auto-it/first-time-contributor":"^10.46.0","@auto-it/released":"^10.46.0","@types/fs-extra":"^11.0.1","@types/marked":"^5","@types/marked-terminal":"^3.1.3","auto":"^10.46.0","eslint":"^8.43.0","eslint-config-prettier":"^8.8.0","eslint-import-resolver-typescript":"^3.5.5","eslint-plugin-eslint-comments":"^3.2.0","eslint-plugin-import":"^2.27.5","eslint-plugin-jest":"^27.2.2","eslint-plugin-n":"^16.0.1","eslint-plugin-prettier":"^4.2.1","eslint-plugin-react-hooks":"^4.6.0","eslint-plugin-simple-import-sort":"^10.0.0","eslint-plugin-storybook":"^0.6.12","eslint-plugin-unicorn":"^47.0.0","eslint-plugin-unused-imports":"^2.0.0","execa":"^7.1.1","husky":"^8.0.3","lint-staged":"^13.2.2","npm-run-all":"^4.1.5","prettier":"^2.8.8","rimraf":"^5.0.1","tsup":"^7.1.0","typescript":"^5.1.3","vite":"^4.3.9","vitest":"^0.32.2"},"auto":{"plugins":["npm","all-contributors","first-time-contributor","released"]},"dependencies":{"find-up":"^6.3.0","strip-json-comments":"^5.0.1"},"author":{"name":"Kevin Ross","email":"kevin.ross@alienfast.com"},"types":"./dist/index.d.ts","gitHead":"73a183b5814e45f99cb25d8249c9683eeb22a9e3","bugs":{"url":"https://github.com/alienfast/find-monorepo-root/issues"},"_id":"@alienfast/find-monorepo-root@1.0.7","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-wCQ+PVLhGpoVVeD/oSKjNOx8moBxI1Mh9bt9m5CmIsiLS0bKwFDTajgE0+QmVDycsBCjtoKjXU+Xup9jRrzL7g==","shasum":"8f84dc81bf0773583ff0d034446102c8adf9018d","tarball":"https://registry.npmjs.org/@alienfast/find-monorepo-root/-/find-monorepo-root-1.0.7.tgz","fileCount":73,"unpackedSize":16968,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCMRcHo+hOrNp/1+3p+0ZRokWY5EqlWkxYS3rkW+gAhdQIgCn+DlEiBT0ms3YkOlRnv8PdSRUKNJmvyP6yBBxKVotQ="}]},"_npmUser":{"name":"rosskevin","email":"kevin.ross@alienfast.com"},"directories":{},"maintainers":[{"name":"rosskevin","email":"kevin.ross@alienfast.com"},{"name":"blake.mcdaniel","email":"blake.mcdaniel@alienfast.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/find-monorepo-root_1.0.7_1693069833079_0.8352560359853505"},"_hasShrinkwrap":false},"1.0.8":{"name":"@alienfast/find-monorepo-root","version":"1.0.8","packageManager":"yarn@3.6.1","description":"Find the root path of a monorepo using various strategies.","type":"module","main-note":"Though this is ESM only, the following main is to appease tsc and varieties of moduleResolution e.g. node vs nodenext, otherwise types aren't found. see https://github.com/rosskevin/ts-esm-workspaces/tree/bug-main-required-to-build#workaround ","main":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"sideEffects":false,"publishConfig":{"access":"public"},"scripts":{"build":"yarn clean && tsup-node","build:ide":"echo 'tsc -b' && tsc -b","clean":"node ./scripts/clean.js","clean:yarn":"node ./scripts/clean-yarn.js","reset":"node ./scripts/reset.js","lint":"eslint . --cache --ext .js,.ts,.tsx","lint:fix":"eslint . --cache --ext .js,.ts,.tsx --fix","test":"vitest","release":"yarn auto shipit"},"keywords":["monorepo","find","root"],"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/mit-license.php"}],"repository":{"type":"git","url":"git+https://github.com/alienfast/find-monorepo-root.git"},"homepage":"https://github.com/alienfast/find-monorepo-root","bin":{"find-monorepo-root":"dist/bin/findMonorepoRoot.js"},"devDependencies":{"@alienfast/eslint-config":"^4.0.7","@alienfast/tsconfig":"^1.0.1","@auto-it/all-contributors":"^10.46.0","@auto-it/first-time-contributor":"^10.46.0","@auto-it/released":"^10.46.0","@types/fs-extra":"^11.0.1","@types/marked":"^5","@types/marked-terminal":"^3.1.3","auto":"^10.46.0","eslint":"^8.43.0","eslint-config-prettier":"^8.8.0","eslint-import-resolver-typescript":"^3.5.5","eslint-plugin-eslint-comments":"^3.2.0","eslint-plugin-import":"^2.27.5","eslint-plugin-jest":"^27.2.2","eslint-plugin-n":"^16.0.1","eslint-plugin-prettier":"^4.2.1","eslint-plugin-react-hooks":"^4.6.0","eslint-plugin-simple-import-sort":"^10.0.0","eslint-plugin-storybook":"^0.6.12","eslint-plugin-unicorn":"^47.0.0","eslint-plugin-unused-imports":"^2.0.0","execa":"^7.1.1","husky":"^8.0.3","lint-staged":"^13.2.2","npm-run-all":"^4.1.5","prettier":"^2.8.8","rimraf":"^5.0.1","tsup":"^7.1.0","typescript":"^5.1.3","vite":"^4.3.9","vitest":"^0.32.2"},"auto":{"plugins":["npm","all-contributors","first-time-contributor","released"]},"dependencies":{"find-up":"^6.3.0","strip-json-comments":"^5.0.1"},"author":{"name":"Kevin Ross","email":"kevin.ross@alienfast.com"},"types":"./dist/index.d.ts","gitHead":"7042b95943e70706882cfea8d0caab700443be9b","bugs":{"url":"https://github.com/alienfast/find-monorepo-root/issues"},"_id":"@alienfast/find-monorepo-root@1.0.8","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-EW6oP4msygw61MzyAJxbZFh+v9R1Nid0zA+7uJJsVQNChQ2Vnpq2LzpyRmIZM5dqDm54VmCJpGBxtX1tNafKEQ==","shasum":"935509f1f39d9e2ac392c58b0fa4eb0b4dad0d60","tarball":"https://registry.npmjs.org/@alienfast/find-monorepo-root/-/find-monorepo-root-1.0.8.tgz","fileCount":73,"unpackedSize":17210,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDUWgz95YmWh/4eEQg1nMphw27OikXEzRnxqctZd7D4UAiEAq0E9ZHr4JO8s2DngVpx4zmVSH+98b0XaOp0bHCZiMJI="}]},"_npmUser":{"name":"rosskevin","email":"kevin.ross@alienfast.com"},"directories":{},"maintainers":[{"name":"rosskevin","email":"kevin.ross@alienfast.com"},{"name":"blake.mcdaniel","email":"blake.mcdaniel@alienfast.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/find-monorepo-root_1.0.8_1693070446774_0.27311717903951616"},"_hasShrinkwrap":false},"1.0.9":{"name":"@alienfast/find-monorepo-root","version":"1.0.9","packageManager":"yarn@3.6.1","description":"Find the root path of a monorepo using various strategies.","type":"module","main-note":"Though this is ESM only, the following main is to appease tsc and varieties of moduleResolution e.g. node vs nodenext, otherwise types aren't found. see https://github.com/rosskevin/ts-esm-workspaces/tree/bug-main-required-to-build#workaround ","main":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"sideEffects":false,"publishConfig":{"access":"public"},"scripts":{"build":"yarn clean && tsup-node","build:ide":"echo 'tsc -b' && tsc -b","clean":"node ./scripts/clean.js","clean:yarn":"node ./scripts/clean-yarn.js","reset":"node ./scripts/reset.js","lint":"eslint . --cache --ext .js,.ts,.tsx","lint:fix":"eslint . --cache --ext .js,.ts,.tsx --fix","test":"vitest","release":"yarn auto shipit"},"keywords":["monorepo","find","root"],"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/mit-license.php"}],"repository":{"type":"git","url":"git+https://github.com/alienfast/find-monorepo-root.git"},"homepage":"https://github.com/alienfast/find-monorepo-root","bin":{"find-monorepo-root":"dist/bin/findMonorepoRoot.js"},"devDependencies":{"@alienfast/eslint-config":"^4.0.7","@alienfast/tsconfig":"^1.0.1","@auto-it/all-contributors":"^10.46.0","@auto-it/first-time-contributor":"^10.46.0","@auto-it/released":"^10.46.0","@types/fs-extra":"^11.0.1","@types/marked":"^5","@types/marked-terminal":"^3.1.3","auto":"^10.46.0","eslint":"^8.43.0","eslint-config-prettier":"^8.8.0","eslint-import-resolver-typescript":"^3.5.5","eslint-plugin-eslint-comments":"^3.2.0","eslint-plugin-import":"^2.27.5","eslint-plugin-jest":"^27.2.2","eslint-plugin-n":"^16.0.1","eslint-plugin-prettier":"^4.2.1","eslint-plugin-react-hooks":"^4.6.0","eslint-plugin-simple-import-sort":"^10.0.0","eslint-plugin-storybook":"^0.6.12","eslint-plugin-unicorn":"^47.0.0","eslint-plugin-unused-imports":"^2.0.0","execa":"^7.1.1","husky":"^8.0.3","lint-staged":"^13.2.2","npm-run-all":"^4.1.5","prettier":"^2.8.8","rimraf":"^5.0.1","tsup":"^7.1.0","typescript":"^5.1.3","vite":"^4.3.9","vitest":"^0.32.2"},"auto":{"plugins":["npm","all-contributors","first-time-contributor","released"]},"dependencies":{"find-up":"^6.3.0","strip-json-comments":"^5.0.1"},"author":{"name":"Kevin Ross","email":"kevin.ross@alienfast.com"},"types":"./dist/index.d.ts","gitHead":"91391f695fa985f8f8455ea9449975adff491e28","bugs":{"url":"https://github.com/alienfast/find-monorepo-root/issues"},"_id":"@alienfast/find-monorepo-root@1.0.9","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-byNl/TSOumkyQPZly3I5XgfGZ5VTWAxakkQbacYQ88zZ4SHiZ5PvFUqC+sXMQtMsneu80QOVjFQIUMk8/DTpkA==","shasum":"80187ccc8ce827a0a4b95501b674d38567aeb0c0","tarball":"https://registry.npmjs.org/@alienfast/find-monorepo-root/-/find-monorepo-root-1.0.9.tgz","fileCount":73,"unpackedSize":17733,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDFIU3e1OZto+BtLSQdc+AfiBt4/zF4pacJuUca+EzXbAIgWhVsxhH026tHSVslAAM7LPlUsehhG3IMXLTY3tpdS18="}]},"_npmUser":{"name":"rosskevin","email":"kevin.ross@alienfast.com"},"directories":{},"maintainers":[{"name":"rosskevin","email":"kevin.ross@alienfast.com"},{"name":"blake.mcdaniel","email":"blake.mcdaniel@alienfast.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/find-monorepo-root_1.0.9_1693071208868_0.25986981126566566"},"_hasShrinkwrap":false}},"time":{"created":"2023-08-26T17:07:03.720Z","1.0.6":"2023-08-26T17:07:04.047Z","modified":"2023-08-26T17:33:29.347Z","1.0.7":"2023-08-26T17:10:33.301Z","1.0.8":"2023-08-26T17:20:46.991Z","1.0.9":"2023-08-26T17:33:29.135Z"},"maintainers":[{"name":"rosskevin","email":"kevin.ross@alienfast.com"},{"name":"blake.mcdaniel","email":"blake.mcdaniel@alienfast.com"}],"description":"Find the root path of a monorepo using various strategies.","homepage":"https://github.com/alienfast/find-monorepo-root","keywords":["monorepo","find","root"],"repository":{"type":"git","url":"git+https://github.com/alienfast/find-monorepo-root.git"},"author":{"name":"Kevin Ross","email":"kevin.ross@alienfast.com"},"bugs":{"url":"https://github.com/alienfast/find-monorepo-root/issues"},"readme":"![MIT](https://img.shields.io/github/license/alienfast/find-monorepo-root?style=for-the-badge)\n![Version](https://img.shields.io/github/package-json/v/alienfast/find-monorepo-root?style=for-the-badge)\n![CI](https://img.shields.io/github/actions/workflow/status/alienfast/find-monorepo-root/release.yml?style=for-the-badge)\n![PRs Welcome](https://img.shields.io/badge/PRs-Welcome-brightgreen.svg?style=for-the-badge)\n\n# @alienfast/find-monorepo-root\n\nFind the root directory of a monorepo using any of the following strategies:\n\n- Lerna\n- Yarn\n- Bolt\n- pnpm\n- npm\n\n## Install\n\n```sh\nyarn install @alienfast/find-monorepo-root\n```\n\n## Usage\n\n### npx\n\nFor easy use in a shell script anywhere in your monorepo, execute with the `-y`\n\n```sh\nnpx -y @alienfast/find-monorepo-root\n# output: /Users/rosskevin/projects/archetype\n```\n\nor\n\n```sh\n#!/usr/bin/env bash\n\nROOT=`npx -y @alienfast/find-monorepo-root`\n\necho \"My monorepo root is ${ROOT}\"\n```\n\n### Api\n\n```ts\nimport { findMonorepoRoot } from '@alienfast/find-monorepo-root'\nconst cwd = process.cwd()\n\nconsole.log(await findMonorepoRoot(cwd))\n// {\n//   strategy: 'lerna', // 'bolt' | 'yarn' | 'pnpm' | 'lerna' | 'npm'\n//   dir: '/Users/rosskevin/projects/archetype',     // the monorepo root directory\n// }\n```\n\n## Contributing\n\nPRs are accepted! This project is configured with `auto`, so feel free to submit a PR and `auto` will automatically create a `canary` release for you to try out.\n\n## Prior art\n\nThis was originally forked from https://github.com/bubkoo/find-monorepo-root/ because it a) did not work for me in it's current form; and b) I wanted to exec it simply with `npx`. Thanks to the original author and contributors.\n","readmeFilename":"README.md"}