renovate/tools/check-re2.mjs
Jamie Magee d4f6aa4bc5
fix: add missing await statements (#5918)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2020-04-09 12:47:48 +02:00

15 lines
362 B
JavaScript

import shell from 'shelljs';
// eslint-disable-next-line @typescript-eslint/no-floating-promises
(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);
}
})();