File tree Expand file tree Collapse file tree 1 file changed +16
-2
lines changed
Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Original file line number Diff line number Diff line change 99 typescriptPluginConfig ,
1010} from '../../code-pushup.preset.js' ;
1111import type { CoreConfig } from '../../packages/models/src/index.js' ;
12- import { mergeConfigs } from '../../packages/utils/src/index.js' ;
1312
1413const projectName = process . env . CP_PROJECT_NAME || 'models' ;
1514
@@ -22,7 +21,7 @@ const config: CoreConfig = {
2221 plugins : [ ] ,
2322} ;
2423
25- export default mergeConfigs (
24+ const configs = [
2625 config ,
2726 await eslintCoreConfigNx ( projectName ) ,
2827 await coverageCoreConfigNx ( projectName ) ,
@@ -34,4 +33,19 @@ export default mergeConfigs(
3433 `packages/${ projectName } /src/**/*.ts` ,
3534 ...jsDocsExclusionPatterns ,
3635 ] ) ,
36+ ] ;
37+
38+ const mergedConfig = configs . reduce (
39+ ( result , currentConfig ) => ( {
40+ ...result ,
41+ ...currentConfig ,
42+ plugins : [ ...( result . plugins || [ ] ) , ...( currentConfig . plugins || [ ] ) ] ,
43+ categories : [
44+ ...( result . categories || [ ] ) ,
45+ ...( currentConfig . categories || [ ] ) ,
46+ ] ,
47+ } ) ,
48+ { } as CoreConfig ,
3749) ;
50+
51+ export default mergedConfig ;
You can’t perform that action at this time.
0 commit comments