Skip to content

Commit 7252165

Browse files
committed
fix: avoid hitting project for metadata format when metadata is specified
1 parent 61b2256 commit 7252165

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/commands/project/retrieve/start.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,13 @@ const buildRetrieveAndDeleteTargets = async (
259259
}
260260
: {}),
261261
...(flags.metadata
262-
? { metadata: { metadataEntries: flags.metadata, directoryPaths: await getPackageDirs() } }
262+
? {
263+
metadata: {
264+
metadataEntries: flags.metadata,
265+
// if mdapi format, there might not be a project
266+
directoryPaths: format === 'metadata' ? [] : await getPackageDirs(),
267+
},
268+
}
263269
: {}),
264270
}),
265271
};

0 commit comments

Comments
 (0)