Skip to content

Commit d79dbd5

Browse files
committed
fix: fix flag config
1 parent a64eff0 commit d79dbd5

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/commands/project/generate/manifest.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -120,19 +120,14 @@ export class ManifestGenerate extends SfCommand<ManifestGenerateCommandResult> {
120120
'.xml'
121121
);
122122

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-
128123
const componentSet = await ComponentSetBuilder.build({
129124
apiversion: flags['api-version'] ?? (await getSourceApiVersion()),
130-
sourcepath,
125+
sourcepath: flags['source-dir'],
131126
metadata:
132127
flags.metadata ?? flags['excluded-metadata']
133128
? {
134129
metadataEntries: flags.metadata ?? [],
135-
directoryPaths: flags['source-dir'] ?? (await getPackageDirs()),
130+
directoryPaths: await getPackageDirs(),
136131
excludedEntries: flags['excluded-metadata'],
137132
}
138133
: undefined,

0 commit comments

Comments
 (0)