Home > @microsoft/node-core-library > IJsonFileSaveOptions > updateExistingFile

IJsonFileSaveOptions.updateExistingFile property

If true, use the “jju” library to preserve the existing JSON formatting: The file will be loaded from the target filename, the new content will be merged in (preserving whitespace and comments), and then the file will be overwritten with the merged contents. If the target file does not exist, then the file is saved normally.


updateExistingFile?: boolean;