@nx/next 0.0.0-pr-29720-06f67e5 → 0.0.0-pr-3-4fa8cf8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/next",
3
- "version": "0.0.0-pr-29720-06f67e5",
3
+ "version": "0.0.0-pr-3-4fa8cf8",
4
4
  "private": false,
5
5
  "description": "The Next.js plugin for Nx contains executors and generators for managing Next.js applications and libraries within an Nx workspace. It provides:\n\n\n- Scaffolding for creating, building, serving, linting, and testing Next.js applications.\n\n- Integration with building, serving, and exporting a Next.js application.\n\n- Integration with React libraries within the workspace. \n\nWhen using Next.js in Nx, you get the out-of-the-box support for TypeScript, Playwright, Cypress, and Jest. No need to configure anything: watch mode, source maps, and typings just work.",
6
6
  "repository": {
@@ -35,7 +35,7 @@
35
35
  "next": ">=14.0.0"
36
36
  },
37
37
  "dependencies": {
38
- "@nx/devkit": "0.0.0-pr-29720-06f67e5",
38
+ "@nx/devkit": "0.0.0-pr-3-4fa8cf8",
39
39
  "@babel/plugin-proposal-decorators": "^7.22.7",
40
40
  "@svgr/webpack": "^8.1.0",
41
41
  "copy-webpack-plugin": "^10.2.4",
@@ -44,11 +44,11 @@
44
44
  "semver": "^7.5.3",
45
45
  "tslib": "^2.3.0",
46
46
  "webpack-merge": "^5.8.0",
47
- "@nx/js": "0.0.0-pr-29720-06f67e5",
48
- "@nx/eslint": "0.0.0-pr-29720-06f67e5",
49
- "@nx/react": "0.0.0-pr-29720-06f67e5",
50
- "@nx/web": "0.0.0-pr-29720-06f67e5",
51
- "@nx/webpack": "0.0.0-pr-29720-06f67e5",
47
+ "@nx/js": "0.0.0-pr-3-4fa8cf8",
48
+ "@nx/eslint": "0.0.0-pr-3-4fa8cf8",
49
+ "@nx/react": "0.0.0-pr-3-4fa8cf8",
50
+ "@nx/web": "0.0.0-pr-3-4fa8cf8",
51
+ "@nx/webpack": "0.0.0-pr-3-4fa8cf8",
52
52
  "@phenomnomnominal/tsquery": "~5.0.1"
53
53
  },
54
54
  "publishConfig": {
@@ -28,6 +28,7 @@ const add_swc_to_custom_server_1 = require("../../utils/add-swc-to-custom-server
28
28
  async function applicationGenerator(host, schema) {
29
29
  return await applicationGeneratorInternal(host, {
30
30
  addPlugin: false,
31
+ useProjectJson: true,
31
32
  ...schema,
32
33
  });
33
34
  }
@@ -39,8 +40,8 @@ async function applicationGeneratorInternal(host, schema) {
39
40
  js: options.js,
40
41
  skipPackageJson: options.skipPackageJson,
41
42
  skipFormat: true,
42
- addTsPlugin: schema.useTsSolution,
43
- formatter: schema.formatter,
43
+ addTsPlugin: options.isTsSolutionSetup,
44
+ formatter: options.formatter,
44
45
  platform: 'web',
45
46
  });
46
47
  tasks.push(jsInitTask);
@@ -51,6 +52,11 @@ async function applicationGeneratorInternal(host, schema) {
51
52
  tasks.push(nextTask);
52
53
  (0, create_application_files_1.createApplicationFiles)(host, options);
53
54
  (0, add_project_1.addProject)(host, options);
55
+ // If we are using the new TS solution
56
+ // We need to update the workspace file (package.json or pnpm-workspaces.yaml) to include the new project
57
+ if (options.isTsSolutionSetup) {
58
+ await (0, ts_solution_setup_1.addProjectToTsSolutionWorkspace)(host, options.appProjectRoot);
59
+ }
54
60
  const e2eTask = await (0, add_e2e_1.addE2e)(host, options);
55
61
  tasks.push(e2eTask);
56
62
  const jestTask = await (0, add_jest_1.addJest)(host, options);
@@ -100,11 +106,6 @@ async function applicationGeneratorInternal(host, schema) {
100
106
  }, options.linter === 'eslint'
101
107
  ? ['.next', 'eslint.config.js', 'eslint.config.cjs', 'eslint.config.mjs']
102
108
  : ['.next'], options.src ? 'src' : '.');
103
- // If we are using the new TS solution
104
- // We need to update the workspace file (package.json or pnpm-workspaces.yaml) to include the new project
105
- if (options.useTsSolution) {
106
- (0, ts_solution_setup_1.addProjectToTsSolutionWorkspace)(host, options.appProjectRoot);
107
- }
108
109
  (0, sort_fields_1.sortPackageJsonFields)(host, options.appProjectRoot);
109
110
  if (!options.skipFormat) {
110
111
  await (0, devkit_1.formatFiles)(host);
@@ -2,13 +2,12 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.addE2e = addE2e;
4
4
  const devkit_1 = require("@nx/devkit");
5
+ const e2e_web_server_info_utils_1 = require("@nx/devkit/src/generators/e2e-web-server-info-utils");
6
+ const target_defaults_utils_1 = require("@nx/devkit/src/generators/target-defaults-utils");
7
+ const find_plugin_for_config_file_1 = require("@nx/devkit/src/utils/find-plugin-for-config-file");
5
8
  const eslint_1 = require("@nx/eslint");
6
- const versions_1 = require("../../../utils/versions");
7
9
  const web_1 = require("@nx/web");
8
- const find_plugin_for_config_file_1 = require("@nx/devkit/src/utils/find-plugin-for-config-file");
9
- const target_defaults_utils_1 = require("@nx/devkit/src/generators/target-defaults-utils");
10
- const e2e_web_server_info_utils_1 = require("@nx/devkit/src/generators/e2e-web-server-info-utils");
11
- const ts_solution_setup_1 = require("@nx/js/src/utils/typescript/ts-solution-setup");
10
+ const versions_1 = require("../../../utils/versions");
12
11
  async function addE2e(host, options) {
13
12
  const nxJson = (0, devkit_1.readNxJson)(host);
14
13
  const hasPlugin = nxJson.plugins?.some((p) => typeof p === 'string'
@@ -25,17 +24,15 @@ async function addE2e(host, options) {
25
24
  spa: true,
26
25
  });
27
26
  }
28
- if ((0, ts_solution_setup_1.isUsingTsSolutionSetup)(host)) {
29
- (0, devkit_1.writeJson)(host, (0, devkit_1.joinPathFragments)(options.e2eProjectRoot, 'package.json'), {
30
- name: options.e2eProjectName,
31
- version: '0.0.1',
32
- private: true,
33
- nx: {
34
- projectType: 'application',
35
- sourceRoot: (0, devkit_1.joinPathFragments)(options.e2eProjectRoot, 'src'),
36
- implicitDependencies: [options.projectName],
37
- },
38
- });
27
+ const packageJson = {
28
+ name: options.e2eProjectName,
29
+ version: '0.0.1',
30
+ private: true,
31
+ };
32
+ if (!options.useProjectJson) {
33
+ packageJson.nx = {
34
+ implicitDependencies: [options.projectName],
35
+ };
39
36
  }
40
37
  else {
41
38
  (0, devkit_1.addProjectConfiguration)(host, options.e2eProjectName, {
@@ -47,6 +44,9 @@ async function addE2e(host, options) {
47
44
  implicitDependencies: [options.projectName],
48
45
  });
49
46
  }
47
+ if (!options.useProjectJson || options.isTsSolutionSetup) {
48
+ (0, devkit_1.writeJson)(host, (0, devkit_1.joinPathFragments)(options.e2eProjectRoot, 'package.json'), packageJson);
49
+ }
50
50
  const e2eTask = await configurationGenerator(host, {
51
51
  ...options,
52
52
  linter: eslint_1.Linter.EsLint,
@@ -81,17 +81,15 @@ async function addE2e(host, options) {
81
81
  }
82
82
  else if (options.e2eTestRunner === 'playwright') {
83
83
  const { configurationGenerator } = (0, devkit_1.ensurePackage)('@nx/playwright', versions_1.nxVersion);
84
- if ((0, ts_solution_setup_1.isUsingTsSolutionSetup)(host)) {
85
- (0, devkit_1.writeJson)(host, (0, devkit_1.joinPathFragments)(options.e2eProjectRoot, 'package.json'), {
86
- name: options.e2eProjectName,
87
- version: '0.0.1',
88
- private: true,
89
- nx: {
90
- projectType: 'application',
91
- sourceRoot: (0, devkit_1.joinPathFragments)(options.e2eProjectRoot, 'src'),
92
- implicitDependencies: [options.projectName],
93
- },
94
- });
84
+ const packageJson = {
85
+ name: options.e2eProjectName,
86
+ version: '0.0.1',
87
+ private: true,
88
+ };
89
+ if (!options.useProjectJson) {
90
+ packageJson.nx = {
91
+ implicitDependencies: [options.projectName],
92
+ };
95
93
  }
96
94
  else {
97
95
  (0, devkit_1.addProjectConfiguration)(host, options.e2eProjectName, {
@@ -103,6 +101,9 @@ async function addE2e(host, options) {
103
101
  implicitDependencies: [options.projectName],
104
102
  });
105
103
  }
104
+ if (!options.useProjectJson || options.isTsSolutionSetup) {
105
+ (0, devkit_1.writeJson)(host, (0, devkit_1.joinPathFragments)(options.e2eProjectRoot, 'package.json'), packageJson);
106
+ }
106
107
  const e2eTask = await configurationGenerator(host, {
107
108
  rootProject: options.rootProject,
108
109
  project: options.e2eProjectName,
@@ -3,8 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.addProject = addProject;
4
4
  const devkit_1 = require("@nx/devkit");
5
5
  const target_defaults_utils_1 = require("@nx/devkit/src/generators/target-defaults-utils");
6
- const ts_solution_setup_1 = require("@nx/js/src/utils/typescript/ts-solution-setup");
7
- const get_import_path_1 = require("@nx/js/src/utils/get-import-path");
8
6
  const versions_1 = require("../../../utils/versions");
9
7
  const react_1 = require("@nx/react");
10
8
  function addProject(host, options) {
@@ -57,27 +55,31 @@ function addProject(host, options) {
57
55
  targets,
58
56
  tags: options.parsedTags,
59
57
  };
60
- if ((0, ts_solution_setup_1.isUsingTsSolutionSetup)(host)) {
61
- (0, devkit_1.writeJson)(host, (0, devkit_1.joinPathFragments)(options.appProjectRoot, 'package.json'), {
62
- name: (0, get_import_path_1.getImportPath)(host, options.name),
63
- version: '0.0.1',
64
- private: true,
65
- dependencies: {
66
- next: versions_1.nextVersion,
67
- react: react_1.reactVersion,
68
- 'react-dom': react_1.reactDomVersion,
69
- },
70
- nx: {
71
- name: options.name,
72
- projectType: 'application',
73
- sourceRoot: options.appProjectRoot,
74
- tags: options.parsedTags?.length ? options.parsedTags : undefined,
75
- },
76
- });
58
+ const packageJson = {
59
+ name: options.importPath,
60
+ version: '0.0.1',
61
+ private: true,
62
+ dependencies: {
63
+ next: versions_1.nextVersion,
64
+ react: react_1.reactVersion,
65
+ 'react-dom': react_1.reactDomVersion,
66
+ },
67
+ };
68
+ if (!options.useProjectJson) {
69
+ if (options.projectName !== options.importPath) {
70
+ packageJson.nx = { name: options.projectName };
71
+ }
72
+ if (options.parsedTags?.length) {
73
+ packageJson.nx ??= {};
74
+ packageJson.nx.tags = options.parsedTags;
75
+ }
77
76
  }
78
77
  else {
79
78
  (0, devkit_1.addProjectConfiguration)(host, options.projectName, {
80
79
  ...project,
81
80
  });
82
81
  }
82
+ if (!options.useProjectJson || options.isTsSolutionSetup) {
83
+ (0, devkit_1.writeJson)(host, (0, devkit_1.joinPathFragments)(options.appProjectRoot, 'package.json'), packageJson);
84
+ }
83
85
  }
@@ -18,7 +18,7 @@ function createApplicationFiles(host, options) {
18
18
  : 'pages/'
19
19
  : '';
20
20
  const templateVariables = {
21
- ...(0, devkit_1.names)(options.name),
21
+ ...(0, devkit_1.names)(options.projectSimpleName),
22
22
  ...options,
23
23
  dot: '.',
24
24
  tmpl: '',
@@ -1,14 +1,17 @@
1
1
  import { Tree } from '@nx/devkit';
2
2
  import { Schema } from '../schema';
3
- export interface NormalizedSchema extends Schema {
3
+ export interface NormalizedSchema extends Omit<Schema, 'name' | 'useTsSolution'> {
4
4
  projectName: string;
5
+ projectSimpleName: string;
5
6
  appProjectRoot: string;
7
+ importPath: string;
6
8
  outputPath: string;
7
9
  e2eProjectName: string;
8
10
  e2eProjectRoot: string;
9
11
  parsedTags: string[];
10
12
  fileName: string;
11
13
  styledModule: null | string;
14
+ isTsSolutionSetup: boolean;
12
15
  js?: boolean;
13
16
  }
14
17
  export declare function normalizeOptions(host: Tree, options: Schema): Promise<NormalizedSchema>;
@@ -5,9 +5,10 @@ const devkit_1 = require("@nx/devkit");
5
5
  const project_name_and_root_utils_1 = require("@nx/devkit/src/generators/project-name-and-root-utils");
6
6
  const eslint_1 = require("@nx/eslint");
7
7
  const assertion_1 = require("@nx/react/src/utils/assertion");
8
+ const ts_solution_setup_1 = require("@nx/js/src/utils/typescript/ts-solution-setup");
8
9
  async function normalizeOptions(host, options) {
9
- await (0, project_name_and_root_utils_1.ensureProjectName)(host, options, 'application');
10
- const { projectName: appProjectName, projectRoot: appProjectRoot } = await (0, project_name_and_root_utils_1.determineProjectNameAndRootOptions)(host, {
10
+ await (0, project_name_and_root_utils_1.ensureRootProjectName)(options, 'application');
11
+ const { projectName, names: projectNames, projectRoot: appProjectRoot, importPath, } = await (0, project_name_and_root_utils_1.determineProjectNameAndRootOptions)(host, {
11
12
  name: options.name,
12
13
  projectType: 'application',
13
14
  directory: options.directory,
@@ -18,10 +19,11 @@ async function normalizeOptions(host, options) {
18
19
  const addPlugin = process.env.NX_ADD_PLUGINS !== 'false' &&
19
20
  nxJson.useInferencePlugins !== false;
20
21
  options.addPlugin ??= addPlugin;
22
+ const isTsSolutionSetup = options.useTsSolution || (0, ts_solution_setup_1.isUsingTsSolutionSetup)(host);
23
+ const appProjectName = !isTsSolutionSetup || options.name ? projectName : importPath;
21
24
  const e2eProjectName = options.rootProject ? 'e2e' : `${appProjectName}-e2e`;
22
25
  const e2eProjectRoot = options.rootProject ? 'e2e' : `${appProjectRoot}-e2e`;
23
- const name = (0, devkit_1.names)(options.name).fileName;
24
- const outputPath = (0, devkit_1.joinPathFragments)('dist', appProjectRoot, ...(options.rootProject ? [name] : []));
26
+ const outputPath = (0, devkit_1.joinPathFragments)('dist', appProjectRoot, ...(options.rootProject ? [projectNames.projectFileName] : []));
25
27
  const parsedTags = options.tags
26
28
  ? options.tags.split(',').map((s) => s.trim())
27
29
  : [];
@@ -42,12 +44,15 @@ async function normalizeOptions(host, options) {
42
44
  e2eTestRunner: options.e2eTestRunner || 'playwright',
43
45
  fileName,
44
46
  linter: options.linter || eslint_1.Linter.EsLint,
45
- name,
46
47
  outputPath,
47
48
  parsedTags,
48
49
  projectName: appProjectName,
50
+ projectSimpleName: projectNames.projectSimpleName,
49
51
  style: options.style || 'css',
50
52
  styledModule,
51
53
  unitTestRunner: options.unitTestRunner || 'jest',
54
+ importPath,
55
+ isTsSolutionSetup,
56
+ useProjectJson: options.useProjectJson ?? !isTsSolutionSetup,
52
57
  };
53
58
  }
@@ -22,4 +22,5 @@ export interface Schema {
22
22
  addPlugin?: boolean;
23
23
  useTsSolution?: boolean;
24
24
  formatter?: 'prettier' | 'none';
25
+ useProjectJson?: boolean;
25
26
  }
@@ -144,6 +144,10 @@
144
144
  "default": false,
145
145
  "hidden": true,
146
146
  "x-priority": "internal"
147
+ },
148
+ "useProjectJson": {
149
+ "type": "boolean",
150
+ "description": "Use a `project.json` configuration file instead of inlining the Nx configuration in the `package.json` file."
147
151
  }
148
152
  },
149
153
  "required": ["directory"],
@@ -5,7 +5,7 @@ const devkit_1 = require("@nx/devkit");
5
5
  const project_name_and_root_utils_1 = require("@nx/devkit/src/generators/project-name-and-root-utils");
6
6
  const ts_solution_setup_1 = require("@nx/js/src/utils/typescript/ts-solution-setup");
7
7
  async function normalizeOptions(host, options) {
8
- await (0, project_name_and_root_utils_1.ensureProjectName)(host, options, 'library');
8
+ await (0, project_name_and_root_utils_1.ensureRootProjectName)(options, 'library');
9
9
  const { projectRoot, importPath } = await (0, project_name_and_root_utils_1.determineProjectNameAndRootOptions)(host, {
10
10
  name: options.name,
11
11
  projectType: 'library',
@@ -16,10 +16,12 @@ async function normalizeOptions(host, options) {
16
16
  const addPlugin = process.env.NX_ADD_PLUGINS !== 'false' &&
17
17
  nxJson.useInferencePlugins !== false;
18
18
  options.addPlugin ??= addPlugin;
19
+ const isUsingTsSolutionConfig = (0, ts_solution_setup_1.isUsingTsSolutionSetup)(host);
19
20
  return {
20
21
  ...options,
21
22
  importPath,
22
23
  projectRoot,
23
- isUsingTsSolutionConfig: (0, ts_solution_setup_1.isUsingTsSolutionSetup)(host),
24
+ isUsingTsSolutionConfig,
25
+ useProjectJson: options.useProjectJson ?? !isUsingTsSolutionConfig,
24
26
  };
25
27
  }
@@ -14,6 +14,7 @@ const sort_fields_1 = require("@nx/js/src/utils/package-json/sort-fields");
14
14
  async function libraryGenerator(host, rawOptions) {
15
15
  return await libraryGeneratorInternal(host, {
16
16
  addPlugin: false,
17
+ useProjectJson: true,
17
18
  ...rawOptions,
18
19
  });
19
20
  }
@@ -96,7 +97,7 @@ async function libraryGeneratorInternal(host, rawOptions) {
96
97
  ? ['eslint.config.js', 'eslint.config.cjs', 'eslint.config.mjs']
97
98
  : undefined);
98
99
  if (options.isUsingTsSolutionConfig) {
99
- (0, ts_solution_setup_1.addProjectToTsSolutionWorkspace)(host, options.projectRoot);
100
+ await (0, ts_solution_setup_1.addProjectToTsSolutionWorkspace)(host, options.projectRoot);
100
101
  }
101
102
  (0, sort_fields_1.sortPackageJsonFields)(host, options.projectRoot);
102
103
  if (!options.skipFormat) {
@@ -24,4 +24,5 @@ export interface Schema {
24
24
  setParserOptionsProject?: boolean;
25
25
  skipPackageJson?: boolean;
26
26
  addPlugin?: boolean;
27
+ useProjectJson?: boolean;
27
28
  }
@@ -158,6 +158,10 @@
158
158
  "default": false,
159
159
  "description": "Do not add dependencies to `package.json`.",
160
160
  "x-priority": "internal"
161
+ },
162
+ "useProjectJson": {
163
+ "type": "boolean",
164
+ "description": "Use a `project.json` configuration file instead of inlining the Nx configuration in the `package.json` file."
161
165
  }
162
166
  },
163
167
  "required": ["directory"],
package/tailwind.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  /**
2
2
  * Generates a set of glob patterns based off the source root of the app and its dependencies
3
3
  * @param dirPath workspace relative directory path that will be used to infer the parent project and dependencies
4
- * @param fileGlobPattern pass a custom glob pattern to be used
4
+ * @param fileGlobPatternToInclude pass a custom glob pattern to be used
5
+ * @param fileGlobPatternToExclude pass a custom glob pattern for files to be excluded
5
6
  */
6
- export declare function createGlobPatternsForDependencies(dirPath: string, fileGlobPatternToInclude?: string, fileGlobPatternToExclude?: string): string[];
7
+ export declare function createGlobPatternsForDependencies(dirPath: string, fileGlobPatternToInclude?: string, fileGlobPatternToExclude?: string): any;
package/tailwind.js CHANGED
@@ -6,27 +6,36 @@ const path_1 = require("path");
6
6
  /**
7
7
  * Generates a set of glob patterns based off the source root of the app and its dependencies
8
8
  * @param dirPath workspace relative directory path that will be used to infer the parent project and dependencies
9
- * @param fileGlobPattern pass a custom glob pattern to be used
9
+ * @param fileGlobPatternToInclude pass a custom glob pattern to be used
10
+ * @param fileGlobPatternToExclude pass a custom glob pattern for files to be excluded
10
11
  */
11
12
  function createGlobPatternsForDependencies(dirPath, fileGlobPatternToInclude = '/**/*.{tsx,ts,jsx,js,html}', fileGlobPatternToExclude = '/**/*.{stories,spec}.{tsx,ts,jsx,js,html}') {
12
- try {
13
- return [
14
- ...(0, generate_globs_1.createGlobPatternsForDependencies)(dirPath, fileGlobPatternToInclude).map((glob) => (0, path_1.relative)(dirPath, glob)),
15
- ...(0, generate_globs_1.createGlobPatternsForDependencies)(dirPath, fileGlobPatternToExclude).map((glob) => `!${(0, path_1.relative)(dirPath, glob)}`),
16
- ];
17
- }
18
- catch (e) {
19
- /**
20
- * It should not be possible to reach this point when the utility is invoked as part of the normal
21
- * lifecycle of Nx executors. However, other tooling, such as the VSCode Tailwind IntelliSense plugin
22
- * or JetBrains editors such as WebStorm, may execute the tailwind.config.js file in order to provide
23
- * autocomplete features, for example.
24
- *
25
- * In order to best support that use-case, we therefore do not hard error when the ProjectGraph is
26
- * fundamently unavailable in this tailwind-specific context.
27
- */
28
- console.warn('\nWARNING: There was an error creating glob patterns, returning an empty array\n' +
29
- `${e.message}\n`);
30
- return [];
13
+ /**
14
+ * There is an issue with TailwindCSS v4 and how globs patterns are consumed.
15
+ * This is a temporary workaround to support both TailwindCSS v4 and v3.
16
+ * Once TailwindCSS v3 is no longer supported, this workaround can be removed.
17
+ */
18
+ const tailwindVersion = require(require.resolve('tailwindcss/package.json', {
19
+ paths: [dirPath],
20
+ })).version;
21
+ if (tailwindVersion && typeof tailwindVersion === 'string') {
22
+ const majorVersion = parseInt(tailwindVersion.split('.')[0], 10);
23
+ if (majorVersion >= 4) {
24
+ try {
25
+ return [
26
+ ...(0, generate_globs_1.createGlobPatternsForDependencies)(dirPath, fileGlobPatternToInclude).map((glob) => (0, path_1.relative)(dirPath, glob)),
27
+ ...(0, generate_globs_1.createGlobPatternsForDependencies)(dirPath, fileGlobPatternToExclude).map((glob) => `!${(0, path_1.relative)(dirPath, glob)}`),
28
+ ];
29
+ }
30
+ catch (e) {
31
+ console.warn('\nWARNING: There was an error creating glob patterns, returning an empty array\n' +
32
+ `${e.message}\n`);
33
+ }
34
+ }
35
+ else {
36
+ const { createGlobPatternsForDependencies: reactGlobPatternFunction, } = require('@nx/react/tailwind');
37
+ return reactGlobPatternFunction(dirPath, fileGlobPatternToInclude);
38
+ }
31
39
  }
40
+ return [];
32
41
  }