Home > @rushstack/node-core-library > IJsonFileSaveOptions > onlyIfChanged
IJsonFileSaveOptions.onlyIfChanged property
If there is an existing file, and the contents have not changed, then don't write anything; this preserves the old timestamp.
Signature:
onlyIfChanged?: boolean;