fix(tools): make cli available even conficts exist (#9678)

This commit is contained in:
forehalo
2025-01-14 09:31:23 +00:00
parent e418465c0c
commit 13d40e5f52
5 changed files with 48 additions and 27 deletions

View File

@@ -4,7 +4,7 @@ import { parse } from 'node:path';
import { type Path, ProjectRoot } from './path';
import type { CommonPackageJsonContent, YarnWorkspaceItem } from './types';
import type { Workspace } from './workspace';
import { PackageList, type PackageName } from './workspace.gen';
import { PackageList, type PackageName } from './yarn';
export function readPackageJson(path: Path): CommonPackageJsonContent {
const content = readFileSync(path.join('package.json').toString(), 'utf-8');