14 lines
609 B
TypeScript
14 lines
609 B
TypeScript
import { createGlobPatternsForDependencies as workspaceGenerateGlobs } from '@nrwl/workspace/src/utilities/generate-globs';
|
|
|
|
/**
|
|
* generates a set of glob patterns based off the source root of the app and it's dependencies
|
|
* @param dirPath workspace relative directory path that will be used to infer the parent project and dependencies
|
|
* @param fileGlobPattern pass a custom glob pattern to be used
|
|
*/
|
|
export function createGlobPatternsForDependencies(
|
|
dirPath: string,
|
|
fileGlobPattern: string = '/**/!(*.stories|*.spec).{tsx,jsx,js}'
|
|
) {
|
|
return workspaceGenerateGlobs(dirPath, fileGlobPattern);
|
|
}
|