mirror of
https://github.com/pnpm/pnpm.git
synced 2026-03-29 04:21:39 -04:00
fix: update WorkspaceManifest packages field to be non-null (#8205)
This commit is contained in:
5
.changeset/metal-panthers-grow.md
Normal file
5
.changeset/metal-panthers-grow.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"@pnpm/workspace.read-manifest": minor
|
||||
---
|
||||
|
||||
The type definition for the `packages` field of the `WorkspaceManifest` is now non-null. The `readWorkspaceManifest` function expects this field to be present and throws an error otherwise.
|
||||
@@ -5,7 +5,7 @@ import path from 'node:path'
|
||||
import readYamlFile from 'read-yaml-file'
|
||||
|
||||
export interface WorkspaceManifest {
|
||||
packages?: string[]
|
||||
packages: string[]
|
||||
}
|
||||
|
||||
export async function readWorkspaceManifest (dir: string): Promise<WorkspaceManifest | undefined> {
|
||||
|
||||
Reference in New Issue
Block a user