mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-11 14:36:25 +00:00
15 lines
362 B
JavaScript
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);
|
|
}
|
|
})();
|