From 93b48ef244527c316b6f1cbf4b762b178198025d Mon Sep 17 00:00:00 2001 From: afe1 <2279948211@qq.com> Date: Sun, 20 Oct 2024 22:30:20 +0800 Subject: [PATCH] fix: use pnpm manage package (#4695) --- internal/node-utils/src/monorepo.ts | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/internal/node-utils/src/monorepo.ts b/internal/node-utils/src/monorepo.ts index 15ddb810..b6373e78 100644 --- a/internal/node-utils/src/monorepo.ts +++ b/internal/node-utils/src/monorepo.ts @@ -11,13 +11,10 @@ import { findUpSync } from 'find-up'; * @param cwd */ function findMonorepoRoot(cwd: string = process.cwd()) { - const lockFile = findUpSync( - ['pnpm-lock.yaml', 'yarn.lock', 'package-lock.json'], - { - cwd, - type: 'file', - }, - ); + const lockFile = findUpSync('pnpm-lock.yaml', { + cwd, + type: 'file', + }); return dirname(lockFile || ''); }