cli-node: document and export isMonoRepo
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
@@ -14,6 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
export { isMonoRepo } from './isMonoRepo';
|
||||
export {
|
||||
PackageGraph,
|
||||
type PackageGraphNode,
|
||||
|
||||
@@ -17,6 +17,11 @@
|
||||
import { paths } from '../paths';
|
||||
import fs from 'fs-extra';
|
||||
|
||||
/**
|
||||
* Returns try if the current project is a monorepo.
|
||||
*
|
||||
* @public
|
||||
*/
|
||||
export async function isMonoRepo(): Promise<boolean> {
|
||||
const rootPackageJsonPath = paths.resolveTargetRoot('package.json');
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user