Skip to content

Commit

Permalink
Run tsc before linting
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolo-ribaudo committed Apr 22, 2024
1 parent bd75691 commit 2ecb92a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
4 changes: 2 additions & 2 deletions Makefile.js

Large diffs are not rendered by default.

7 changes: 4 additions & 3 deletions Makefile.source.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -349,15 +349,16 @@ target["clone-license"] = function () {
*/

target["lint"] = function () {
// Pre-run tscheck, otherwise typescript-eslint
// will run it by itsels
target["tscheck"]();
env(
() => {
// Pre-run tscheck, otherwise typescript-eslint
// will run it by itsels
target["tscheck"]();
yarn(EslintArgs);
},
{
BABEL_ENV: "test",
TSCHECK_SILENT: "true",
}
);
};
Expand Down
8 changes: 5 additions & 3 deletions scripts/parallel-tsc/tsc.js
Original file line number Diff line number Diff line change
Expand Up @@ -195,9 +195,11 @@ const pool = new Pool({
);

done += projects.length;
console.log(
`[${done}/${total}] ${projects.map(project => "./" + relativePath(process.cwd(), project)).join(" ")} took ${Math.round(duration) / 1e3}s`
);
if (!process.env.TSCHECK_SILENT) {
console.log(
`[${done}/${total}] ${projects.map(project => "./" + relativePath(process.cwd(), project)).join(" ")} took ${Math.round(duration) / 1e3}s`
);
}
for (const project of projects) {
for (const dependent of projectToDependents.get(project) ?? []) {
const dependencies = projectToDependencies.get(dependent);
Expand Down

0 comments on commit 2ecb92a

Please sign in to comment.