(cwd: string)
| 64 | } |
| 65 | |
| 66 | async function readPnpmWorkspacePatterns(cwd: string) { |
| 67 | for (const filename of ['pnpm-workspace.yaml', 'pnpm-workspace.yml']) { |
| 68 | try { |
| 69 | const content = await fs.readFile(path.join(cwd, filename), 'utf8'); |
| 70 | return pnpmWorkspacePatternsFrom(parseYaml(content)); |
| 71 | } catch (error: unknown) { |
| 72 | if (errorCode(error) !== 'ENOENT') { |
| 73 | throw error; |
| 74 | } |
| 75 | } |
| 76 | } |
| 77 | |
| 78 | return []; |
| 79 | } |
| 80 | |
| 81 | export async function readWorkspaceProject( |
| 82 | cwd = process.cwd(), |
no test coverage detected