Skip to content

Commit a7227f0

Browse files
fix(npm-scripts): more recent versions of node expect writeFileSync to be an explicit string
1 parent acc22ca commit a7227f0

File tree

1 file changed

+1
-1
lines changed
  • projects/npm-tools/packages/npm-scripts/src/scripts

1 file changed

+1
-1
lines changed

projects/npm-tools/packages/npm-scripts/src/scripts/format.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ async function format(options = {}) {
101101
}
102102
else {
103103
const formatted = await format(source, prettierOptions);
104-
fs.writeFileSync(filepath, formatted);
104+
fs.writeFileSync(filepath, formatted || '');
105105
fixed++;
106106
}
107107
}

0 commit comments

Comments
 (0)