File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed
src/commands/project/generate Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -120,19 +120,14 @@ export class ManifestGenerate extends SfCommand<ManifestGenerateCommandResult> {
120
120
'.xml'
121
121
) ;
122
122
123
- // Set the sourcepath if the source-dir flag is set without the metadata flag. If both flags are set
124
- // they will combine to restrict the metadata in the sourcepaths (i.e., not be additive) and that will
125
- // be handled by the MetadataOption of ComponentSetBuilder.
126
- const sourcepath = flags [ 'source-dir' ] && ! flags . metadata ? flags [ 'source-dir' ] : undefined ;
127
-
128
123
const componentSet = await ComponentSetBuilder . build ( {
129
124
apiversion : flags [ 'api-version' ] ?? ( await getSourceApiVersion ( ) ) ,
130
- sourcepath,
125
+ sourcepath : flags [ 'source-dir' ] ,
131
126
metadata :
132
127
flags . metadata ?? flags [ 'excluded-metadata' ]
133
128
? {
134
129
metadataEntries : flags . metadata ?? [ ] ,
135
- directoryPaths : flags [ 'source-dir' ] ?? ( await getPackageDirs ( ) ) ,
130
+ directoryPaths : await getPackageDirs ( ) ,
136
131
excludedEntries : flags [ 'excluded-metadata' ] ,
137
132
}
138
133
: undefined ,
You can’t perform that action at this time.
0 commit comments