Show monaco.d.ts output only when something has changed

This commit is contained in:
Alex Dima
2018-10-24 16:04:54 +02:00
parent 9deb8d4a42
commit 072eef20ac
4 changed files with 0 additions and 17 deletions

View File

@@ -172,11 +172,9 @@ class MonacoGenerator {
const result = this._run();
if (!result) {
// nothing really changed
this._log(`monaco.d.ts is unchanged - total time took ${Date.now() - startTime} ms`);
return;
}
if (result.isTheSame) {
this._log(`monaco.d.ts is unchanged - total time took ${Date.now() - startTime} ms`);
return;
}
fs.writeFileSync(result.filePath, result.content);