emit exit code only in lint mode

This commit is contained in:
Tobias Koppers 2018-09-21 12:11:57 +02:00
parent 01741d4fae
commit 8b489f1c1b
2 changed files with 2 additions and 2 deletions

View File

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

View File

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