mirror of
https://gitlab.com/gitlab-org/gitlab-foss.git
synced 2025-07-25 16:03:48 +00:00
18 lines
371 B
JavaScript
18 lines
371 B
JavaScript
const IS_EE = require('../../config/helpers/is_ee_env');
|
|
const IS_JH = require('../../config/helpers/is_jh_env');
|
|
|
|
const allPatterns = [
|
|
{
|
|
ignore: !IS_EE,
|
|
pattern: 'ee/**/*.*',
|
|
},
|
|
{
|
|
ignore: !IS_JH,
|
|
pattern: 'jh/**/*.*',
|
|
},
|
|
];
|
|
|
|
const ignorePatterns = allPatterns.filter((x) => x.ignore).map((x) => x.pattern);
|
|
|
|
module.exports = { ignorePatterns };
|