mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-13 15:36:25 +00:00
813a8bc645
Co-authored-by: Rhys Arkins <rhys@arkins.net>
25 lines
478 B
JavaScript
25 lines
478 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');
|
|
}
|
|
|
|
/**
|
|
* return's prettier
|
|
* @returns {typeof import('prettier')}
|
|
*/
|
|
function prettier() {
|
|
return require('prettier');
|
|
}
|
|
|
|
module.exports = { dirname: __dirname, re2, pkg, prettier };
|