diff --git a/packages/angular/tailwind.ts b/packages/angular/tailwind.ts index e6e04c4c9c..438c4f6b1c 100644 --- a/packages/angular/tailwind.ts +++ b/packages/angular/tailwind.ts @@ -1,4 +1,4 @@ -import { createGlobPatternsForDependencies as workspaceGenerateGlobs } from '@nrwl/workspace/src/utilities/generate-globs'; +import { createGlobPatternsForDependencies as jsGenerateGlobs } from '@nrwl/js/src/utils/generate-globs'; /** * Generates a set of glob patterns based off the source root of the app and its dependencies @@ -10,7 +10,7 @@ export function createGlobPatternsForDependencies( fileGlobPattern: string = '/**/!(*.stories|*.spec).{ts,html}' ) { try { - return workspaceGenerateGlobs(dirPath, fileGlobPattern); + return jsGenerateGlobs(dirPath, fileGlobPattern); } catch { /** * It should not be possible to reach this point when the utility is invoked as part of the normal diff --git a/packages/workspace/src/utilities/generate-globs.ts b/packages/js/src/utils/generate-globs.ts similarity index 100% rename from packages/workspace/src/utilities/generate-globs.ts rename to packages/js/src/utils/generate-globs.ts diff --git a/packages/react/tailwind.ts b/packages/react/tailwind.ts index d4816206d2..2abdbab4f9 100644 --- a/packages/react/tailwind.ts +++ b/packages/react/tailwind.ts @@ -1,4 +1,4 @@ -import { createGlobPatternsForDependencies as workspaceGenerateGlobs } from '@nrwl/workspace/src/utilities/generate-globs'; +import { createGlobPatternsForDependencies as jsGenerateGlobs } from '@nrwl/js/src/utils/generate-globs'; /** * Generates a set of glob patterns based off the source root of the app and its dependencies @@ -10,7 +10,7 @@ export function createGlobPatternsForDependencies( fileGlobPattern: string = '/**/!(*.stories|*.spec).{tsx,jsx,js,html}' ) { try { - return workspaceGenerateGlobs(dirPath, fileGlobPattern); + return jsGenerateGlobs(dirPath, fileGlobPattern); } catch { /** * It should not be possible to reach this point when the utility is invoked as part of the normal