Skip to content

Commit 073c2b6

Browse files
benkeeniclanton
authored andcommitted
Update libraries/rush-lib/src/logic/pnpm/PnpmOptionsConfiguration.ts
Co-authored-by: Ian Clanton-Thuon <iclanton@users.noreply.github.com>
1 parent cb3c760 commit 073c2b6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

libraries/rush-lib/src/logic/pnpm/PnpmOptionsConfiguration.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,7 @@ export class PnpmOptionsConfiguration extends PackageManagerOptionsConfiguration
558558
public updateGlobalCatalogs(catalogs: Record<string, Record<string, string>> | undefined): void {
559559
this._json.globalCatalogs = catalogs;
560560
if (this.jsonFilename) {
561-
JsonFile.save(this._json, this.jsonFilename, { updateExistingFile: true });
561+
JsonFile.save(this._json, this.jsonFilename, { updateExistingFile: true, ignoreUndefinedValues: true });
562562
}
563563
}
564564
}

0 commit comments

Comments
 (0)