cleanup(js): move createGlobPatternsForDependencies to js (#15466)

This commit is contained in:
Colum Ferry 2023-03-07 23:16:19 +00:00 committed by GitHub
parent e1a2c98556
commit 5d19b53abc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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