scripts/api-extractor: allow docs build to be run for individual packages

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2022-02-10 09:50:20 +01:00
parent cd317ec582
commit 2b37b3057e
+2 -2
View File
@@ -821,9 +821,9 @@ async function main() {
const selectedPackageDirs = await findSpecificPackageDirs(
process.argv.slice(2).filter(arg => !arg.startsWith('--')),
);
if (selectedPackageDirs && (isCiBuild || isDocsBuild)) {
if (selectedPackageDirs && isCiBuild) {
throw new Error(
'Package path arguments are not supported for the --ci and --docs flags',
'Package path arguments are not supported together with the --ci flag',
);
}
if (!selectedPackageDirs && !isCiBuild && !isDocsBuild) {