From 5d19b53abc35e2f84d7d27ca560ec4c1a80c5665 Mon Sep 17 00:00:00 2001 From: Colum Ferry Date: Tue, 7 Mar 2023 23:16:19 +0000 Subject: [PATCH] cleanup(js): move createGlobPatternsForDependencies to js (#15466) --- packages/angular/tailwind.ts | 4 ++-- .../src/utilities => js/src/utils}/generate-globs.ts | 0 packages/react/tailwind.ts | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) rename packages/{workspace/src/utilities => js/src/utils}/generate-globs.ts (100%) diff --git a/packages/angular/tailwind.ts b/packages/angular/tailwind.ts index e6e04c4c9c443..438c4f6b1cd3b 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 d4816206d223b..2abdbab4f939f 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