mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-12 23:16:26 +00:00
5e0e9ac1c2
* refactor: prepare esm helper * chore: fix type name
17 lines
344 B
JavaScript
17 lines
344 B
JavaScript
// https://stackoverflow.com/a/46745166/10109857
|
|
|
|
/**
|
|
* returns renovates package.json
|
|
* @type {import('./types').RenovatePackageJson}
|
|
*/
|
|
const pkg = (() => require('../package.json'))();
|
|
|
|
/**
|
|
* return's re2
|
|
* @returns {RegExpConstructor}
|
|
*/
|
|
function re2() {
|
|
return require('re2');
|
|
}
|
|
|
|
module.exports = { dirname: __dirname, re2, pkg };
|