gitlab-org--gitlab-foss/config/helpers/is_ee_env.js
2019-04-05 12:08:05 +02:00

9 lines
260 B
JavaScript

const fs = require('fs');
const path = require('path');
const ROOT_PATH = path.resolve(__dirname, '../..');
module.exports =
process.env.IS_GITLAB_EE !== undefined
? JSON.parse(process.env.IS_GITLAB_EE)
: fs.existsSync(path.join(ROOT_PATH, 'ee'));