File tree 1 file changed +5
-1
lines changed 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change
1
+ import * as path from 'path' ;
2
+
1
3
import { getFileName , getYamlFiles } from '../../common/util/fs' ;
2
4
import { Context } from '../../common/types/manifest' ;
3
5
import { load } from '../../common/lib/load' ;
@@ -35,6 +37,8 @@ const mergeManifestsData = async (manifests: string[], context: Context) => {
35
37
for await ( const manifest of manifests ) {
36
38
const manifestName = getFileName ( manifest ) ;
37
39
const { rawManifest} = await load ( manifest ) ;
40
+ const parentDir = path . basename ( path . dirname ( manifest ) ) ;
41
+ const uniqueName = `${ parentDir } -${ manifestName } ` ;
38
42
39
43
context . tags = Object . assign ( { } , context . tags , rawManifest . tags ) ;
40
44
context . initialize . plugins = {
@@ -43,7 +47,7 @@ const mergeManifestsData = async (manifests: string[], context: Context) => {
43
47
} ;
44
48
45
49
Object . keys ( rawManifest . tree . children ) . forEach ( child => {
46
- tree . children [ `${ child } -${ manifestName } ` ] = {
50
+ tree . children [ `${ child } -${ uniqueName } ` ] = {
47
51
...rawManifest . tree . children [ child ] ,
48
52
} ;
49
53
} ) ;
You can’t perform that action at this time.
0 commit comments