Skip packing any private package by gulp script (#20395)
* Skip packing any private package by gulp script
This commit is contained in:
Родитель
a846ac62a1
Коммит
2d7d1b8cd3
|
@ -111,6 +111,9 @@ function isPackageFolderPath(folderPath: string, packagesToIgnore: string[]): bo
|
||||||
if (packageJson?.name?.startsWith("@azure-tests/") || packageJson?.name?.startsWith("@azure/arm-")) {
|
if (packageJson?.name?.startsWith("@azure-tests/") || packageJson?.name?.startsWith("@azure/arm-")) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
if (packageJson?.private) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
result = !contains(packagesToIgnore, packageJson.name!);
|
result = !contains(packagesToIgnore, packageJson.name!);
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче