emit exit code only in lint mode

This commit is contained in:
Tobias Koppers 2018-09-20 18:00:11 +02:00
parent 1f6b92de3e
commit 44955b7600
3 changed files with 3 additions and 3 deletions

View File

@ -65,9 +65,9 @@ const makeDefinitionsForSchema = absSchemaPath => {
"/"
)}.d.ts need to be updated`
);
}
process.exitCode = 1;
}
}
},
err => {
console.error(err);

View File

@ -124,9 +124,9 @@ const formatSchema = schemaPath => {
console.error(
`schemas/${basename.replace(/\\/g, "/")} need to be updated`
);
}
process.exitCode = 1;
}
}
});
};

View File

@ -137,8 +137,8 @@ for (const sourceFile of program.getSourceFiles()) {
);
}
console.log();
}
process.exitCode = 1;
}
}
}
}