renovate/tools/check-re2.mjs
Michael Kriese 8270d5512d
refactor: fix lint issues (#16779)
* refactor: fix lint issues

* Update lib/renovate.ts

* chore: revert toplevel await for ts
2022-07-26 08:32:12 +00:00

14 lines
300 B
JavaScript

import shell from 'shelljs';
await (async () => {
shell.echo('-n', 'Checking re2 ... ');
try {
const { default: RE2 } = await import('re2');
new RE2('.*').exec('test');
shell.echo(`ok.`);
} catch (e) {
shell.echo(`error.\n${e}`);
shell.echo();
shell.exit(1);
}
})();