How to use the @ts-common/azure-js-dev-tools.getChildFolderPaths function in @ts-common/azure-js-dev-tools

To help you get started, we’ve selected a few @ts-common/azure-js-dev-tools examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Azure / azure-sdk-for-js / .scripts / common.ts View on Github external
export function getPackageFolderPaths(packagesFolderPath: string): string[] | undefined {
  return getChildFolderPaths(packagesFolderPath, {
    recursive: true,
    condition: (folderPath: string) => isPackageFolderPath(folderPath, packagesToIgnore),
    folderCondition: (folderPath: string) => !contains(folderNamesToIgnore, getName(folderPath))
  });
}