1 | 'use strict';
|
2 |
|
3 | Object.defineProperty(exports, '__esModule', {
|
4 | value: true
|
5 | });
|
6 | exports.default = getConfigsOfProjectsToRun;
|
7 |
|
8 | var _getProjectDisplayName = _interopRequireDefault(
|
9 | require('./getProjectDisplayName')
|
10 | );
|
11 |
|
12 | function _interopRequireDefault(obj) {
|
13 | return obj && obj.__esModule ? obj : {default: obj};
|
14 | }
|
15 |
|
16 |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 | function getConfigsOfProjectsToRun(namesOfProjectsToRun, projectConfigs) {
|
23 | const setOfProjectsToRun = new Set(namesOfProjectsToRun);
|
24 | return projectConfigs.filter(config => {
|
25 | const name = (0, _getProjectDisplayName.default)(config);
|
26 | return name && setOfProjectsToRun.has(name);
|
27 | });
|
28 | }
|