Welcome to mirror list, hosted at ThFree Co, Russian Federation.

is_ee_env.js « helpers « config - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 3fe9bb891eb1cdc3640d39d1abb49605c5fc7bfb (plain)
1
2
3
4
5
6
7
8
9
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'));