Skip to content

Commit

Permalink
cleanup(js): move createGlobPatternsForDependencies to js (#15466)
Browse files Browse the repository at this point in the history
  • Loading branch information
Coly010 committed Mar 7, 2023
1 parent e1a2c98 commit 5d19b53
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/angular/tailwind.ts
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions packages/react/tailwind.ts
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand Down

1 comment on commit 5d19b53

@vercel
Copy link

@vercel vercel bot commented on 5d19b53 Mar 7, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

nx-dev – ./

nx-dev-nrwl.vercel.app
nx-dev-git-master-nrwl.vercel.app
nx-five.vercel.app
nx.dev

Please sign in to comment.