renovate/tools/check-re2.mjs
renovate[bot] 3ba1c93960
chore(deps): update dependency eslint-plugin-import to v2.21.2 (#6505)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2020-06-22 13:30:00 +02:00

15 lines
419 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'); // eslint-disable-line import/no-extraneous-dependencies
new RE2('.*').exec('test');
shell.echo(`ok.`);
} catch (e) {
shell.echo(`error.\n${e}`);
shell.echo();
shell.exit(1);
}
})();