Skip to content

Commit

Permalink
emit exit code only in lint mode
Browse files Browse the repository at this point in the history
  • Loading branch information
sokra committed Sep 21, 2018
1 parent 1f6b92d commit 44955b7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tooling/compile-to-definitions.js
Expand Up @@ -65,8 +65,8 @@ const makeDefinitionsForSchema = absSchemaPath => {
"/"
)}.d.ts need to be updated`
);
process.exitCode = 1;
}
process.exitCode = 1;
}
},
err => {
Expand Down
2 changes: 1 addition & 1 deletion tooling/format-schemas.js
Expand Up @@ -124,8 +124,8 @@ const formatSchema = schemaPath => {
console.error(
`schemas/${basename.replace(/\\/g, "/")} need to be updated`
);
process.exitCode = 1;
}
process.exitCode = 1;
}
});
};
Expand Down
2 changes: 1 addition & 1 deletion tooling/inherit-types.js
Expand Up @@ -137,8 +137,8 @@ for (const sourceFile of program.getSourceFiles()) {
);
}
console.log();
process.exitCode = 1;
}
process.exitCode = 1;
}
}
}

0 comments on commit 44955b7

Please sign in to comment.