2019-03-28 13:02:56 -04:00
|
|
|
const fs = require('fs');
|
|
|
|
const path = require('path');
|
|
|
|
|
|
|
|
const ROOT_PATH = path.resolve(__dirname, '../..');
|
|
|
|
|
|
|
|
module.exports =
|
2019-04-05 06:08:05 -04:00
|
|
|
process.env.IS_GITLAB_EE !== undefined
|
|
|
|
? JSON.parse(process.env.IS_GITLAB_EE)
|
2019-03-28 13:02:56 -04:00
|
|
|
: fs.existsSync(path.join(ROOT_PATH, 'ee'));
|