(manifestPath: string)
| 678 | } |
| 679 | |
| 680 | async function readPackageManifest(manifestPath: string): Promise<PackageManifest | undefined> { |
| 681 | try { |
| 682 | const content = await fs.readFile(manifestPath, 'utf8'); |
| 683 | |
| 684 | return JSON.parse(content) as PackageManifest; |
| 685 | } catch { |
| 686 | return undefined; |
| 687 | } |
| 688 | } |
| 689 | |
| 690 | function findPackageJson(workspaceDir: string, packageName: string): string | undefined { |
| 691 | try { |