File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -126,9 +126,9 @@ export async function normalizeOptions(raw: VersionBumpOptions): Promise<Normali
126126 // read pnpm-workspace.yaml
127127 const pnpmWorkspace = await fs . readFile ( 'pnpm-workspace.yaml' , 'utf8' )
128128 // parse yaml
129- const workspaces = yaml . parse ( pnpmWorkspace ) as { packages : string [ ] }
129+ const workspaces = yaml . parse ( pnpmWorkspace ) as { packages ? : string [ ] }
130130 // append package.json to each workspace string
131- const workspacesWithPackageJson = workspaces . packages . map ( workspace => `${ workspace } /package.json` )
131+ const workspacesWithPackageJson = ( workspaces . packages ?? [ ] ) . map ( workspace => `${ workspace } /package.json` )
132132 // start with ! or already in files should be excluded
133133 const withoutExcludedWorkspaces = workspacesWithPackageJson . filter ( workspace => ! workspace . startsWith ( '!' ) && ! raw . files ?. includes ( workspace ) )
134134 // add to files
You can’t perform that action at this time.
0 commit comments