trustwallet-assets/script/main/check-sanity.ts
Adam R b5384bb9e6
[internal] Infra for errors and warnings. (#3590)
* Infra for errors and warnings.

* Most allowlist/denylist consistency errors are warnings only.

* Adapt danger to errors+wranings.

Co-authored-by: Catenocrypt <catenocrypt@users.noreply.github.com>
2020-08-24 17:06:21 +02:00

15 lines
310 B
TypeScript

import { sanityCheckAll } from "../action/update-all";
export async function main() {
try {
const [errors, warnings] = await sanityCheckAll();
// warnings ignored
process.exit(errors.length);
} catch(err) {
console.error(err);
process.exit(1);
}
}
main();