@nx/react 23.0.0-beta.0 → 23.0.0-beta.10

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.
Files changed (117) hide show
  1. package/generators.json +0 -7
  2. package/index.d.ts +0 -2
  3. package/index.d.ts.map +1 -1
  4. package/index.js +1 -5
  5. package/package.json +19 -24
  6. package/src/executors/module-federation-dev-server/module-federation-dev-server.impl.js +2 -2
  7. package/src/executors/module-federation-ssr-dev-server/module-federation-ssr-dev-server.impl.js +3 -3
  8. package/src/executors/module-federation-static-server/module-federation-static-server.impl.js +2 -2
  9. package/src/generators/application/application.d.ts.map +1 -1
  10. package/src/generators/application/application.js +3 -19
  11. package/src/generators/application/files/base-rsbuild/tsconfig.app.json__tmpl__ +0 -2
  12. package/src/generators/application/files/base-rspack/tsconfig.app.json__tmpl__ +0 -2
  13. package/src/generators/application/files/base-vite/index.html__tmpl__ +1 -1
  14. package/src/generators/application/files/base-vite/tsconfig.app.json__tmpl__ +0 -2
  15. package/src/generators/application/files/base-webpack/tsconfig.app.json__tmpl__ +0 -2
  16. package/src/generators/application/lib/add-e2e.d.ts.map +1 -1
  17. package/src/generators/application/lib/add-project.d.ts.map +1 -1
  18. package/src/generators/application/lib/add-project.js +14 -4
  19. package/src/generators/application/lib/bundlers/add-rsbuild.d.ts.map +1 -1
  20. package/src/generators/application/lib/bundlers/add-rsbuild.js +2 -21
  21. package/src/generators/application/lib/bundlers/add-rspack.d.ts +0 -1
  22. package/src/generators/application/lib/bundlers/add-rspack.d.ts.map +1 -1
  23. package/src/generators/application/lib/bundlers/add-rspack.js +0 -25
  24. package/src/generators/application/lib/create-application-files.d.ts +1 -2
  25. package/src/generators/application/lib/create-application-files.d.ts.map +1 -1
  26. package/src/generators/application/lib/create-application-files.js +8 -60
  27. package/src/generators/application/lib/install-common-dependencies.d.ts.map +1 -1
  28. package/src/generators/application/lib/install-common-dependencies.js +2 -7
  29. package/src/generators/application/lib/normalize-options.d.ts.map +1 -1
  30. package/src/generators/application/lib/normalize-options.js +3 -7
  31. package/src/generators/application/lib/update-jest-config.d.ts.map +1 -1
  32. package/src/generators/application/lib/update-jest-config.js +0 -3
  33. package/src/generators/application/schema.d.ts +0 -1
  34. package/src/generators/application/schema.json +2 -21
  35. package/src/generators/component/component.d.ts.map +1 -1
  36. package/src/generators/component/component.js +2 -5
  37. package/src/generators/component/files/__fileName__.__ext__ +3 -18
  38. package/src/generators/component/lib/normalize-options.d.ts.map +1 -1
  39. package/src/generators/component/lib/normalize-options.js +3 -8
  40. package/src/generators/component/schema.d.ts +2 -8
  41. package/src/generators/component/schema.json +2 -26
  42. package/src/generators/federate-module/federate-module.d.ts.map +1 -1
  43. package/src/generators/federate-module/federate-module.js +2 -2
  44. package/src/generators/hook/hook.d.ts.map +1 -1
  45. package/src/generators/hook/hook.js +2 -2
  46. package/src/generators/host/host.d.ts.map +1 -1
  47. package/src/generators/host/host.js +2 -2
  48. package/src/generators/host/lib/normalize-host-name.js +2 -2
  49. package/src/generators/host/schema.json +2 -21
  50. package/src/generators/init/init.d.ts.map +1 -1
  51. package/src/generators/init/init.js +2 -2
  52. package/src/generators/library/files/common/tsconfig.lib.json__tmpl__ +0 -1
  53. package/src/generators/library/files/vite/tsconfig.lib.json__tmpl__ +0 -1
  54. package/src/generators/library/lib/add-rollup-build-target.d.ts.map +1 -1
  55. package/src/generators/library/lib/add-rollup-build-target.js +7 -6
  56. package/src/generators/library/lib/create-files.d.ts.map +1 -1
  57. package/src/generators/library/lib/create-files.js +1 -12
  58. package/src/generators/library/lib/install-common-dependencies.d.ts.map +1 -1
  59. package/src/generators/library/lib/install-common-dependencies.js +2 -7
  60. package/src/generators/library/lib/normalize-options.d.ts.map +1 -1
  61. package/src/generators/library/lib/normalize-options.js +3 -3
  62. package/src/generators/library/library.d.ts.map +1 -1
  63. package/src/generators/library/library.js +4 -6
  64. package/src/generators/library/schema.json +2 -21
  65. package/src/generators/redux/redux.d.ts.map +1 -1
  66. package/src/generators/redux/redux.js +2 -2
  67. package/src/generators/redux/schema.d.ts +1 -1
  68. package/src/generators/remote/remote.d.ts.map +1 -1
  69. package/src/generators/remote/remote.js +2 -2
  70. package/src/generators/remote/schema.json +2 -21
  71. package/src/migrations/update-20-2-0/migrate-with-mf-import-to-new-package.d.ts.map +1 -1
  72. package/src/migrations/update-20-2-0/migrate-with-mf-import-to-new-package.js +2 -2
  73. package/src/migrations/update-20-3-0/ensure-nx-module-federation-package.d.ts.map +1 -1
  74. package/src/migrations/update-20-3-0/ensure-nx-module-federation-package.js +2 -2
  75. package/src/migrations/update-22-0-0/add-svgr-to-webpack-config.d.ts.map +1 -1
  76. package/src/migrations/update-22-0-0/add-svgr-to-webpack-config.js +34 -7
  77. package/src/plugins/router-plugin.d.ts.map +1 -1
  78. package/src/plugins/router-plugin.js +11 -19
  79. package/src/utils/assertion.d.ts.map +1 -1
  80. package/src/utils/assertion.js +1 -10
  81. package/src/utils/create-ts-config.js +0 -7
  82. package/src/utils/normalize-remote.js +2 -2
  83. package/src/utils/versions.d.ts +2 -15
  84. package/src/utils/versions.d.ts.map +1 -1
  85. package/src/utils/versions.js +3 -18
  86. package/tailwind.d.ts +2 -3
  87. package/tailwind.d.ts.map +1 -1
  88. package/tailwind.js +11 -5
  89. package/typings/style.d.ts +1 -9
  90. package/src/generators/application/files/style-styled-jsx/src/app/__fileName__.tsx__tmpl__ +0 -46
  91. package/src/generators/application/files/style-styled-module/src/app/__fileName__.tsx__tmpl__ +0 -49
  92. package/src/generators/application/files/style-tailwind/src/app/__fileName__.tsx__tmpl__ +0 -45
  93. package/src/generators/application/files/style-tailwind/src/styles.css +0 -1
  94. package/src/generators/application/lib/show-possible-warnings.d.ts +0 -4
  95. package/src/generators/application/lib/show-possible-warnings.d.ts.map +0 -1
  96. package/src/generators/application/lib/show-possible-warnings.js +0 -11
  97. package/src/generators/setup-tailwind/files/postcss.config.js__tmpl__ +0 -15
  98. package/src/generators/setup-tailwind/files/tailwind.config.js__tmpl__ +0 -17
  99. package/src/generators/setup-tailwind/lib/add-tailwind-style-imports.d.ts +0 -4
  100. package/src/generators/setup-tailwind/lib/add-tailwind-style-imports.d.ts.map +0 -1
  101. package/src/generators/setup-tailwind/lib/add-tailwind-style-imports.js +0 -27
  102. package/src/generators/setup-tailwind/lib/update-project.d.ts +0 -4
  103. package/src/generators/setup-tailwind/lib/update-project.d.ts.map +0 -1
  104. package/src/generators/setup-tailwind/lib/update-project.js +0 -11
  105. package/src/generators/setup-tailwind/schema.d.ts +0 -7
  106. package/src/generators/setup-tailwind/schema.d.ts.map +0 -1
  107. package/src/generators/setup-tailwind/schema.js +0 -2
  108. package/src/generators/setup-tailwind/schema.json +0 -47
  109. package/src/generators/setup-tailwind/setup-tailwind.d.ts +0 -5
  110. package/src/generators/setup-tailwind/setup-tailwind.d.ts.map +0 -1
  111. package/src/generators/setup-tailwind/setup-tailwind.js +0 -35
  112. package/src/rules/add-styled-dependencies.d.ts +0 -6
  113. package/src/rules/add-styled-dependencies.d.ts.map +0 -1
  114. package/src/rules/add-styled-dependencies.js +0 -16
  115. package/src/utils/styled.d.ts +0 -4
  116. package/src/utils/styled.d.ts.map +0 -1
  117. package/src/utils/styled.js +0 -62
@@ -16,7 +16,7 @@ const has_rspack_plugin_1 = require("../../../utils/has-rspack-plugin");
16
16
  const ts_solution_setup_1 = require("@nx/js/src/utils/typescript/ts-solution-setup");
17
17
  const versions_1 = require("../../../utils/versions");
18
18
  function getDefaultTemplateVariables(host, options) {
19
- const hasStyleFile = ['scss', 'css', 'less'].includes(options.style);
19
+ const hasStyleFile = ['scss', 'css'].includes(options.style);
20
20
  const appTests = (0, get_app_tests_1.getAppTests)(options);
21
21
  return {
22
22
  ...options.names,
@@ -33,7 +33,7 @@ function getDefaultTemplateVariables(host, options) {
33
33
  offsetFromRoot: (0, devkit_1.offsetFromRoot)(options.appProjectRoot),
34
34
  appTests,
35
35
  inSourceVitestTests: (0, get_in_source_vitest_tests_template_1.getInSourceVitestTestsTemplate)(appTests),
36
- style: options.style === 'tailwind' ? 'css' : options.style,
36
+ style: options.style,
37
37
  hasStyleFile,
38
38
  isUsingTsSolutionSetup: (0, ts_solution_setup_1.isUsingTsSolutionSetup)(host),
39
39
  port: options.port ?? 4200,
@@ -55,25 +55,12 @@ function createNxRspackPluginOptions(options, rootOffset, tsx = true) {
55
55
  }, `./src/main.${tsx ? 'tsx' : 'ts'}`),
56
56
  tsConfig: './tsconfig.app.json',
57
57
  assets: ['./src/favicon.ico', './src/assets'],
58
- styles: options.styledModule || !options.hasStyles
59
- ? []
60
- : [
61
- `./src/styles.${options.style !== 'tailwind' ? options.style : 'css'}`,
62
- ],
58
+ styles: !options.hasStyles ? [] : [`./src/styles.${options.style}`],
63
59
  };
64
60
  }
65
61
  async function createApplicationFiles(host, options) {
66
62
  let styleSolutionSpecificAppFiles;
67
- if (options.styledModule && options.style !== 'styled-jsx') {
68
- styleSolutionSpecificAppFiles = '../files/style-styled-module';
69
- }
70
- else if (options.style === 'styled-jsx') {
71
- styleSolutionSpecificAppFiles = '../files/style-styled-jsx';
72
- }
73
- else if (options.style === 'tailwind') {
74
- styleSolutionSpecificAppFiles = '../files/style-tailwind';
75
- }
76
- else if (options.style === 'none') {
63
+ if (options.style === 'none') {
77
64
  styleSolutionSpecificAppFiles = '../files/style-none';
78
65
  }
79
66
  else if (options.globalCss) {
@@ -107,53 +94,18 @@ async function createApplicationFiles(host, options) {
107
94
  '@nx/react/babel',
108
95
  {
109
96
  runtime: 'automatic',
110
- importSource: options.style === '@emotion/styled'
111
- ? '@emotion/react'
112
- : undefined,
113
97
  },
114
98
  ],
115
99
  ],
116
- plugins: [
117
- options.style === 'styled-components'
118
- ? ['styled-components', { pure: true, ssr: true }]
119
- : undefined,
120
- options.style === 'styled-jsx' ? 'styled-jsx/babel' : undefined,
121
- options.style === '@emotion/styled'
122
- ? '@emotion/babel-plugin'
123
- : undefined,
124
- ].filter(Boolean),
100
+ plugins: [],
125
101
  });
126
102
  }
127
103
  else if (options.compiler === 'swc') {
128
- const swcrc = {
104
+ (0, devkit_1.writeJson)(host, `${options.appProjectRoot}/.swcrc`, {
129
105
  jsc: {
130
106
  target: 'es2016',
131
107
  },
132
- };
133
- if (options.style === 'styled-components') {
134
- swcrc.jsc.experimental = {
135
- plugins: [
136
- [
137
- '@swc/plugin-styled-components',
138
- {
139
- displayName: true,
140
- ssr: true,
141
- },
142
- ],
143
- ],
144
- };
145
- }
146
- else if (options.style === '@emotion/styled') {
147
- swcrc.jsc.experimental = {
148
- plugins: [['@swc/plugin-emotion', {}]],
149
- };
150
- }
151
- else if (options.style === 'styled-jsx') {
152
- swcrc.jsc.experimental = {
153
- plugins: [['@swc/plugin-styled-jsx', {}]],
154
- };
155
- }
156
- (0, devkit_1.writeJson)(host, `${options.appProjectRoot}/.swcrc`, swcrc);
108
+ });
157
109
  }
158
110
  }
159
111
  else if (options.bundler === 'rspack') {
@@ -207,11 +159,7 @@ function createNxWebpackPluginOptions(options, rootOffset) {
207
159
  }, `./src/main.tsx`),
208
160
  tsConfig: './tsconfig.app.json',
209
161
  assets: ['./src/favicon.ico', './src/assets'],
210
- styles: options.styledModule || !options.hasStyles
211
- ? []
212
- : [
213
- `./src/styles.${options.style !== 'tailwind' ? options.style : 'css'}`,
214
- ],
162
+ styles: !options.hasStyles ? [] : [`./src/styles.${options.style}`],
215
163
  };
216
164
  }
217
165
  function generateReactRouterFiles(tree, options, templateVariables) {
@@ -1 +1 @@
1
- {"version":3,"file":"install-common-dependencies.d.ts","sourceRoot":"","sources":["../../../../../../../packages/react/src/generators/application/lib/install-common-dependencies.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgC,IAAI,EAAE,MAAM,YAAY,CAAC;AAchE,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAG7C,wBAAsB,yBAAyB,CAC7C,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,gBAAgB,mDA6D1B"}
1
+ {"version":3,"file":"install-common-dependencies.d.ts","sourceRoot":"","sources":["../../../../../../../packages/react/src/generators/application/lib/install-common-dependencies.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgC,IAAI,EAAE,MAAM,YAAY,CAAC;AAahE,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAG7C,wBAAsB,yBAAyB,CAC7C,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,gBAAgB,mDAwD1B"}
@@ -32,13 +32,8 @@ async function installCommonDependencies(host, options) {
32
32
  // Vite requires style preprocessors to be installed manually.
33
33
  // `@nx/webpack` installs them automatically for now.
34
34
  if (options.bundler === 'vite' || options.unitTestRunner === 'vitest') {
35
- switch (options.style) {
36
- case 'scss':
37
- devDependencies['sass'] = versions_1.sassVersion;
38
- break;
39
- case 'less':
40
- devDependencies['less'] = versions_1.lessVersion;
41
- break;
35
+ if (options.style === 'scss') {
36
+ devDependencies['sass'] = versions_1.sassVersion;
42
37
  }
43
38
  }
44
39
  if (options.bundler === 'webpack') {
@@ -1 +1 @@
1
- {"version":3,"file":"normalize-options.d.ts","sourceRoot":"","sources":["../../../../../../../packages/react/src/generators/application/lib/normalize-options.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAqB,MAAM,YAAY,CAAC;AASrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAIrD,wBAAsB,gBAAgB,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,EAC9D,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,MAAM,GACd,OAAO,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC,CA6E9B"}
1
+ {"version":3,"file":"normalize-options.d.ts","sourceRoot":"","sources":["../../../../../../../packages/react/src/generators/application/lib/normalize-options.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAqB,MAAM,YAAY,CAAC;AASrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAIrD,wBAAsB,gBAAgB,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,EAC9D,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,MAAM,GACd,OAAO,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC,CAwE9B"}
@@ -2,13 +2,13 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.normalizeOptions = normalizeOptions;
4
4
  const devkit_1 = require("@nx/devkit");
5
- const project_name_and_root_utils_1 = require("@nx/devkit/src/generators/project-name-and-root-utils");
5
+ const internal_1 = require("@nx/devkit/internal");
6
6
  const assertion_1 = require("../../../utils/assertion");
7
7
  const find_free_port_1 = require("./find-free-port");
8
8
  const ts_solution_setup_1 = require("@nx/js/src/utils/typescript/ts-solution-setup");
9
9
  async function normalizeOptions(host, options) {
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, {
10
+ await (0, internal_1.ensureRootProjectName)(options, 'application');
11
+ const { projectName, names: projectNames, projectRoot: appProjectRoot, importPath, } = await (0, internal_1.determineProjectNameAndRootOptions)(host, {
12
12
  name: options.name,
13
13
  projectType: 'application',
14
14
  directory: options.directory,
@@ -27,9 +27,6 @@ async function normalizeOptions(host, options) {
27
27
  ? options.tags.split(',').map((s) => s.trim())
28
28
  : [];
29
29
  const fileName = 'app';
30
- const styledModule = /^(css|scss|less|tailwind|none)$/.test(options.style)
31
- ? null
32
- : options.style;
33
30
  (0, assertion_1.assertValidStyle)(options.style);
34
31
  (0, assertion_1.assertValidReactRouter)(options.useReactRouter, options.bundler);
35
32
  if (options.useReactRouter && !options.bundler) {
@@ -45,7 +42,6 @@ async function normalizeOptions(host, options) {
45
42
  e2eProjectRoot,
46
43
  parsedTags,
47
44
  fileName,
48
- styledModule,
49
45
  hasStyles: options.style !== 'none',
50
46
  names: (0, devkit_1.names)(projectNames.projectSimpleName),
51
47
  isUsingTsSolutionConfig,
@@ -1 +1 @@
1
- {"version":3,"file":"update-jest-config.d.ts","sourceRoot":"","sources":["../../../../../../../packages/react/src/generators/application/lib/update-jest-config.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAC7C,OAAO,EAAE,IAAI,EAAc,MAAM,YAAY,CAAC;AAE9C,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,gBAAgB,QAoCrE"}
1
+ {"version":3,"file":"update-jest-config.d.ts","sourceRoot":"","sources":["../../../../../../../packages/react/src/generators/application/lib/update-jest-config.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAC7C,OAAO,EAAE,IAAI,EAAc,MAAM,YAAY,CAAC;AAE9C,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,gBAAgB,QAiCrE"}
@@ -10,9 +10,6 @@ function updateSpecConfig(host, options) {
10
10
  (0, devkit_1.updateJson)(host, `${options.appProjectRoot}/tsconfig.spec.json`, (json) => {
11
11
  const compilerOptions = json.compilerOptions ?? {};
12
12
  const types = compilerOptions.types ?? [];
13
- if (options.style === 'styled-jsx') {
14
- types.push('@nx/react/typings/styled-jsx.d.ts');
15
- }
16
13
  types.push('@nx/react/typings/cssmodule.d.ts', '@nx/react/typings/image.d.ts');
17
14
  compilerOptions.types = types;
18
15
  json.compilerOptions = compilerOptions;
@@ -44,7 +44,6 @@ export interface NormalizedSchema<T extends Schema = Schema> extends T {
44
44
  importPath: string;
45
45
  parsedTags: string[];
46
46
  fileName: string;
47
- styledModule: null | SupportedStyles;
48
47
  hasStyles: boolean;
49
48
  unitTestRunner: 'jest' | 'vitest' | 'none';
50
49
  addPlugin?: boolean;
@@ -45,6 +45,7 @@
45
45
  "type": "string",
46
46
  "default": "css",
47
47
  "alias": "s",
48
+ "enum": ["css", "scss", "none"],
48
49
  "x-prompt": {
49
50
  "message": "Which stylesheet format would you like to use?",
50
51
  "type": "list",
@@ -55,27 +56,7 @@
55
56
  },
56
57
  {
57
58
  "value": "scss",
58
- "label": "SASS(.scss) [ https://sass-lang.com ]"
59
- },
60
- {
61
- "value": "less",
62
- "label": "LESS [ https://lesscss.org ]"
63
- },
64
- {
65
- "value": "tailwind",
66
- "label": "tailwind [ https://tailwindcss.com/ ]"
67
- },
68
- {
69
- "value": "styled-components",
70
- "label": "styled-components [ https://styled-components.com ]"
71
- },
72
- {
73
- "value": "@emotion/styled",
74
- "label": "emotion [ https://emotion.sh ]"
75
- },
76
- {
77
- "value": "styled-jsx",
78
- "label": "styled-jsx [ https://www.npmjs.com/package/styled-jsx ]"
59
+ "label": "SASS(.scss) [ https://sass-lang.com ]"
79
60
  },
80
61
  {
81
62
  "value": "none",
@@ -1 +1 @@
1
- {"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../../../../../packages/react/src/generators/component/component.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,iBAAiB,EAIjB,IAAI,EACL,MAAM,YAAY,CAAC;AASpB,OAAO,EAAoB,MAAM,EAAE,MAAM,UAAU,CAAC;AAGpD,wBAAsB,kBAAkB,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,8BAyBlE;AAiFD,eAAe,kBAAkB,CAAC"}
1
+ {"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../../../../../packages/react/src/generators/component/component.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,iBAAiB,EAIjB,IAAI,EACL,MAAM,YAAY,CAAC;AAQpB,OAAO,EAAoB,MAAM,EAAE,MAAM,UAAU,CAAC;AAGpD,wBAAsB,kBAAkB,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,8BAsBlE;AAiFD,eAAe,kBAAkB,CAAC"}
@@ -4,7 +4,6 @@ exports.componentGenerator = componentGenerator;
4
4
  const devkit_1 = require("@nx/devkit");
5
5
  const ensure_typescript_1 = require("@nx/js/src/utils/typescript/ensure-typescript");
6
6
  const path_1 = require("path");
7
- const add_styled_dependencies_1 = require("../../rules/add-styled-dependencies");
8
7
  const ast_utils_1 = require("../../utils/ast-utils");
9
8
  const get_in_source_vitest_tests_template_1 = require("../../utils/get-in-source-vitest-tests-template");
10
9
  const versions_1 = require("../../utils/versions");
@@ -14,8 +13,6 @@ async function componentGenerator(host, schema) {
14
13
  const options = await (0, normalize_options_1.normalizeOptions)(host, schema);
15
14
  createComponentFiles(host, options);
16
15
  const tasks = [];
17
- const styledTask = (0, add_styled_dependencies_1.addStyledModuleDependencies)(host, options);
18
- tasks.push(styledTask);
19
16
  addExportsToBarrel(host, options);
20
17
  if (options.routing) {
21
18
  const routingTask = (0, devkit_1.addDependenciesToPackageJson)(host, { 'react-router-dom': versions_1.reactRouterDomVersion }, {});
@@ -38,10 +35,10 @@ function createComponentFiles(host, options) {
38
35
  if (options.skipTests || options.inSourceTests) {
39
36
  host.delete((0, devkit_1.joinPathFragments)(options.directory, `${options.fileName}.spec.${options.fileExtension}`));
40
37
  }
41
- if (options.styledModule || !options.hasStyles || !options.globalCss) {
38
+ if (!options.hasStyles || !options.globalCss) {
42
39
  host.delete((0, path_1.join)(options.directory, `${options.fileName}.${options.style}`));
43
40
  }
44
- if (options.styledModule || !options.hasStyles || options.globalCss) {
41
+ if (!options.hasStyles || options.globalCss) {
45
42
  host.delete((0, path_1.join)(options.directory, `${options.fileName}.module.${options.style}`));
46
43
  }
47
44
  }
@@ -6,34 +6,21 @@ import { Route, Link } from 'react-router-dom';
6
6
  <%_ } _%>
7
7
 
8
8
  <%_ if (hasStyles) {
9
- if (styledModule && styledModule !== 'styled-jsx' && styledModule !== 'tailwind') {
10
- var wrapper = 'Styled' + className;
11
- var extras = '';
12
- _%>
13
- import styled from '<%= styledModule %>';
14
- <%_ } else {
15
9
  var wrapper = 'div';
16
- var extras = globalCss || styledModule === 'styled-jsx' || styledModule === 'tailwind' ? '' : " className={styles['container']}";
10
+ var extras = globalCss ? '' : " className={styles['container']}";
17
11
  _%>
18
- <%- style !== 'styled-jsx' && style!== 'tailwind' ? globalCss ? `import './${fileName}.${style}';` : `import styles from './${fileName}.module.${style}';`: '' %>
19
- <%_ }
20
- } else {
12
+ <%- globalCss ? `import './${fileName}.${style}';` : `import styles from './${fileName}.module.${style}';` %>
13
+ <%_ } else {
21
14
  var wrapper = 'div';
22
15
  var extras = '';
23
16
  } _%>
24
17
 
25
- <%_ if (styledModule && styledModule !== 'styled-jsx' && styledModule !== 'tailwind') { _%>
26
- const Styled<%= className %> = styled.div`
27
- color: pink;
28
- `;
29
- <%_ } _%>
30
18
  <%_ if(!isNextPage) { _%>
31
19
  <%_ if (classComponent) { _%>
32
20
  export class <%= className %> extends Component<% if (isTs) { %><{}><% } %> {
33
21
  <% if (isTs) { %>override<% } %> render() {
34
22
  return (
35
23
  <<%= wrapper %><%- extras %>>
36
- <%= styledModule === 'styled-jsx' ? `<style jsx>{\`div { color: pink; }\`}</style>` : `` %>
37
24
  <p>Welcome to <%= className %>!</p>
38
25
  <%_ if (routing) { _%>
39
26
  <ul>
@@ -49,7 +36,6 @@ export class <%= className %> extends Component<% if (isTs) { %><{}><% } %> {
49
36
  export function <%= className %>() {
50
37
  return (
51
38
  <<%= wrapper %><%- extras %>>
52
- <%_ if (styledModule === 'styled-jsx') { _%><style jsx>{`div { color: pink; }`}</style><%_ } _%>
53
39
  <h1>Welcome to <%= className %>!</h1>
54
40
  <%_ if (routing) { _%>
55
41
  <ul>
@@ -67,7 +53,6 @@ export default <%= className %>;
67
53
  export default function <%= className %>() {
68
54
  return (
69
55
  <<%= wrapper %><%- extras %>>
70
- <%_ if (styledModule === 'styled-jsx') { _%><style jsx>{`div { color: pink; }`}</style><%_ } _%>
71
56
  <h1>Welcome to <%= className %>!</h1>
72
57
  <% if (routing) { %>
73
58
  <ul>
@@ -1 +1 @@
1
- {"version":3,"file":"normalize-options.d.ts","sourceRoot":"","sources":["../../../../../../../packages/react/src/generators/component/lib/normalize-options.ts"],"names":[],"mappings":"AAAA,OAAO,EAA2C,IAAI,EAAE,MAAM,YAAY,CAAC;AAK3E,OAAO,EAAE,gBAAgB,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAGrD,wBAAsB,gBAAgB,CACpC,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,MAAM,GACd,OAAO,CAAC,gBAAgB,CAAC,CAgE3B"}
1
+ {"version":3,"file":"normalize-options.d.ts","sourceRoot":"","sources":["../../../../../../../packages/react/src/generators/component/lib/normalize-options.ts"],"names":[],"mappings":"AAAA,OAAO,EAA2C,IAAI,EAAE,MAAM,YAAY,CAAC;AAI3E,OAAO,EAAE,gBAAgB,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAGrD,wBAAsB,gBAAgB,CACpC,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,MAAM,GACd,OAAO,CAAC,gBAAgB,CAAC,CA0D3B"}
@@ -2,24 +2,20 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.normalizeOptions = normalizeOptions;
4
4
  const devkit_1 = require("@nx/devkit");
5
- const artifact_name_and_directory_utils_1 = require("@nx/devkit/src/generators/artifact-name-and-directory-utils");
5
+ const internal_1 = require("@nx/devkit/internal");
6
6
  const assertion_1 = require("../../../utils/assertion");
7
7
  const ts_solution_setup_1 = require("@nx/js/src/utils/typescript/ts-solution-setup");
8
8
  async function normalizeOptions(tree, options) {
9
9
  (0, assertion_1.assertValidStyle)(options.style);
10
- const { artifactName: name, directory, fileName, filePath, fileExtension, fileExtensionType, project: projectName, } = await (0, artifact_name_and_directory_utils_1.determineArtifactNameAndDirectoryOptions)(tree, {
10
+ const { artifactName: name, directory, fileName, filePath, fileExtension, fileExtensionType, project: projectName, } = await (0, internal_1.determineArtifactNameAndDirectoryOptions)(tree, {
11
11
  path: options.path,
12
12
  name: options.name,
13
13
  allowedFileExtensions: ['js', 'jsx', 'ts', 'tsx'],
14
- fileExtension: options.js ? 'js' : 'tsx',
15
- js: options.js,
14
+ fileExtension: 'tsx',
16
15
  });
17
16
  const project = (0, devkit_1.readProjectConfiguration)(tree, projectName);
18
17
  const { className } = (0, devkit_1.names)(name);
19
18
  const { sourceRoot: projectSourceRoot, root: projectRoot, projectType, } = project;
20
- const styledModule = /^(css|scss|less|none)$/.test(options.style)
21
- ? null
22
- : options.style;
23
19
  if (options.export &&
24
20
  (0, ts_solution_setup_1.getProjectType)(tree, projectRoot, projectType) === 'application') {
25
21
  devkit_1.logger.warn(`The "--export" option should not be used with applications and will do nothing.`);
@@ -34,7 +30,6 @@ async function normalizeOptions(tree, options) {
34
30
  ...options,
35
31
  directory,
36
32
  projectName,
37
- styledModule,
38
33
  hasStyles: options.style !== 'none',
39
34
  className,
40
35
  fileName,
@@ -1,4 +1,4 @@
1
- import type { FileExtensionType } from '@nx/devkit/src/generators/artifact-name-and-directory-utils';
1
+ import type { FileExtensionType } from '@nx/devkit/internal';
2
2
  import { SupportedStyles } from '../../../typings/style';
3
3
 
4
4
  export interface Schema {
@@ -14,14 +14,9 @@ export interface Schema {
14
14
  skipFormat?: boolean;
15
15
  // Used by Next.js to determine how React should generate the page
16
16
  isNextPage?: boolean;
17
-
18
- /**
19
- * @deprecated Provide the full file path including the file extension in the `path` option. This option will be removed in Nx v21.
20
- */
21
- js?: boolean;
22
17
  }
23
18
 
24
- export interface NormalizedSchema extends Omit<Schema, 'js'> {
19
+ export interface NormalizedSchema extends Schema {
25
20
  directory: string;
26
21
  projectRoot: string;
27
22
  projectSourceRoot: string;
@@ -31,6 +26,5 @@ export interface NormalizedSchema extends Omit<Schema, 'js'> {
31
26
  fileExtension: string;
32
27
  fileExtensionType: FileExtensionType;
33
28
  className: string;
34
- styledModule: null | string;
35
29
  hasStyles: boolean;
36
30
  }
@@ -25,6 +25,7 @@
25
25
  "type": "string",
26
26
  "alias": "s",
27
27
  "default": "css",
28
+ "enum": ["css", "scss", "none"],
28
29
  "x-prompt": {
29
30
  "message": "Which stylesheet format would you like to use?",
30
31
  "type": "list",
@@ -35,27 +36,7 @@
35
36
  },
36
37
  {
37
38
  "value": "scss",
38
- "label": "SASS(.scss) [ https://sass-lang.com ]"
39
- },
40
- {
41
- "value": "less",
42
- "label": "LESS [ https://lesscss.org ]"
43
- },
44
- {
45
- "value": "tailwind",
46
- "label": "tailwind [ https://tailwindcss.com/ ]"
47
- },
48
- {
49
- "value": "styled-components",
50
- "label": "styled-components [ https://styled-components.com ]"
51
- },
52
- {
53
- "value": "@emotion/styled",
54
- "label": "emotion [ https://emotion.sh ]"
55
- },
56
- {
57
- "value": "styled-jsx",
58
- "label": "styled-jsx [ https://www.npmjs.com/package/styled-jsx ]"
39
+ "label": "SASS(.scss) [ https://sass-lang.com ]"
59
40
  },
60
41
  {
61
42
  "value": "none",
@@ -64,11 +45,6 @@
64
45
  ]
65
46
  }
66
47
  },
67
- "js": {
68
- "type": "boolean",
69
- "description": "Generate JavaScript files rather than TypeScript files.",
70
- "x-deprecated": "Provide the full file path including the file extension in the `path` option. This option will be removed in Nx v21."
71
- },
72
48
  "skipTests": {
73
49
  "type": "boolean",
74
50
  "description": "When true, does not create `spec.ts` test files for the new component.",
@@ -1 +1 @@
1
- {"version":3,"file":"federate-module.d.ts","sourceRoot":"","sources":["../../../../../../packages/react/src/generators/federate-module/federate-module.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,IAAI,EAQL,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAOlC,wBAAsB,uBAAuB,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,8BAiEvE;AAED,eAAe,uBAAuB,CAAC"}
1
+ {"version":3,"file":"federate-module.d.ts","sourceRoot":"","sources":["../../../../../../packages/react/src/generators/federate-module/federate-module.ts"],"names":[],"mappings":"AACA,OAAO,EACL,iBAAiB,EACjB,IAAI,EAQL,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAMlC,wBAAsB,uBAAuB,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,8BAiEvE;AAED,eAAe,uBAAuB,CAAC"}
@@ -1,10 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.federateModuleGenerator = federateModuleGenerator;
4
+ const internal_1 = require("@nx/devkit/internal");
4
5
  const devkit_1 = require("@nx/devkit");
5
6
  const remote_1 = require("../remote/remote");
6
7
  const utils_1 = require("./lib/utils");
7
- const project_name_and_root_utils_1 = require("@nx/devkit/src/generators/project-name-and-root-utils");
8
8
  const js_1 = require("@nx/js");
9
9
  async function federateModuleGenerator(tree, schema) {
10
10
  // Check if the file exists
@@ -14,7 +14,7 @@ async function federateModuleGenerator(tree, schema) {
14
14
  Path: ${schema.path}`);
15
15
  }
16
16
  const tasks = [];
17
- const { projectName: remoteName, projectRoot: remoteRoot } = await (0, project_name_and_root_utils_1.determineProjectNameAndRootOptions)(tree, {
17
+ const { projectName: remoteName, projectRoot: remoteRoot } = await (0, internal_1.determineProjectNameAndRootOptions)(tree, {
18
18
  name: schema.remote,
19
19
  directory: schema.remoteDirectory,
20
20
  projectType: 'application',
@@ -1 +1 @@
1
- {"version":3,"file":"hook.d.ts","sourceRoot":"","sources":["../../../../../../packages/react/src/generators/hook/hook.ts"],"names":[],"mappings":"AACA,OAAO,EAQL,IAAI,EACL,MAAM,YAAY,CAAC;AAQpB,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAclC,wBAAsB,aAAa,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,iBAO7D;AAmHD,eAAe,aAAa,CAAC"}
1
+ {"version":3,"file":"hook.d.ts","sourceRoot":"","sources":["../../../../../../packages/react/src/generators/hook/hook.ts"],"names":[],"mappings":"AAKA,OAAO,EAQL,IAAI,EACL,MAAM,YAAY,CAAC;AAIpB,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAclC,wBAAsB,aAAa,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,iBAO7D;AAmHD,eAAe,aAAa,CAAC"}
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.hookGenerator = hookGenerator;
4
+ const internal_1 = require("@nx/devkit/internal");
4
5
  // TODO(jack): Remove inline renderHook function when RTL releases with its own version
5
6
  const devkit_1 = require("@nx/devkit");
6
- const artifact_name_and_directory_utils_1 = require("@nx/devkit/src/generators/artifact-name-and-directory-utils");
7
7
  const ensure_typescript_1 = require("@nx/js/src/utils/typescript/ensure-typescript");
8
8
  const path_1 = require("path");
9
9
  const ast_utils_1 = require("../../utils/ast-utils");
@@ -45,7 +45,7 @@ function addExportsToBarrel(host, options) {
45
45
  }
46
46
  }
47
47
  async function normalizeOptions(host, options) {
48
- const { artifactName, directory, fileName: hookFilename, fileExtension, fileExtensionType, project: projectName, } = await (0, artifact_name_and_directory_utils_1.determineArtifactNameAndDirectoryOptions)(host, {
48
+ const { artifactName, directory, fileName: hookFilename, fileExtension, fileExtensionType, project: projectName, } = await (0, internal_1.determineArtifactNameAndDirectoryOptions)(host, {
49
49
  path: options.path,
50
50
  name: options.name,
51
51
  allowedFileExtensions: ['js', 'ts'],
@@ -1 +1 @@
1
- {"version":3,"file":"host.d.ts","sourceRoot":"","sources":["../../../../../../packages/react/src/generators/host/host.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,iBAAiB,EAKjB,IAAI,EAGL,MAAM,YAAY,CAAC;AAapB,OAAO,EAAoB,MAAM,EAAE,MAAM,UAAU,CAAC;AAYpD,wBAAsB,aAAa,CACjC,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,MAAM,GACb,OAAO,CAAC,iBAAiB,CAAC,CAmJ5B;AAmCD,eAAe,aAAa,CAAC"}
1
+ {"version":3,"file":"host.d.ts","sourceRoot":"","sources":["../../../../../../packages/react/src/generators/host/host.ts"],"names":[],"mappings":"AACA,OAAO,EAIL,iBAAiB,EAKjB,IAAI,EAGL,MAAM,YAAY,CAAC;AAapB,OAAO,EAAoB,MAAM,EAAE,MAAM,UAAU,CAAC;AAWpD,wBAAsB,aAAa,CACjC,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,MAAM,GACb,OAAO,CAAC,iBAAiB,CAAC,CAmJ5B;AAmCD,eAAe,aAAa,CAAC"}
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.hostGenerator = hostGenerator;
4
4
  const tslib_1 = require("tslib");
5
+ const internal_1 = require("@nx/devkit/internal");
5
6
  const devkit_1 = require("@nx/devkit");
6
7
  const update_module_federation_project_1 = require("../../rules/update-module-federation-project");
7
8
  const application_1 = tslib_1.__importDefault(require("../application/application"));
@@ -16,7 +17,6 @@ const add_mf_env_to_inputs_1 = require("../../utils/add-mf-env-to-inputs");
16
17
  const js_1 = require("@nx/js");
17
18
  const ts_solution_setup_1 = require("@nx/js/src/utils/typescript/ts-solution-setup");
18
19
  const versions_1 = require("../../utils/versions");
19
- const project_name_and_root_utils_1 = require("@nx/devkit/src/generators/project-name-and-root-utils");
20
20
  const update_module_federation_tsconfig_1 = require("./lib/update-module-federation-tsconfig");
21
21
  const normalize_host_name_1 = require("./lib/normalize-host-name");
22
22
  async function hostGenerator(host, schema) {
@@ -46,7 +46,7 @@ async function hostGenerator(host, schema) {
46
46
  }
47
47
  });
48
48
  }
49
- await (0, project_name_and_root_utils_1.ensureRootProjectName)(options, 'application');
49
+ await (0, internal_1.ensureRootProjectName)(options, 'application');
50
50
  const initTask = await (0, application_1.default)(host, {
51
51
  ...options,
52
52
  directory: options.appProjectRoot,
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.normalizeHostName = normalizeHostName;
4
- const project_name_and_root_utils_1 = require("@nx/devkit/src/generators/project-name-and-root-utils");
4
+ const internal_1 = require("@nx/devkit/internal");
5
5
  async function normalizeHostName(tree, directory, name) {
6
- const { projectName } = await (0, project_name_and_root_utils_1.determineProjectNameAndRootOptions)(tree, {
6
+ const { projectName } = await (0, internal_1.determineProjectNameAndRootOptions)(tree, {
7
7
  name,
8
8
  directory,
9
9
  projectType: 'application',
@@ -27,6 +27,7 @@
27
27
  "type": "string",
28
28
  "default": "css",
29
29
  "alias": "s",
30
+ "enum": ["css", "scss", "none"],
30
31
  "x-prompt": {
31
32
  "message": "Which stylesheet format would you like to use?",
32
33
  "type": "list",
@@ -37,27 +38,7 @@
37
38
  },
38
39
  {
39
40
  "value": "scss",
40
- "label": "SASS(.scss) [ https://sass-lang.com ]"
41
- },
42
- {
43
- "value": "less",
44
- "label": "LESS [ https://lesscss.org ]"
45
- },
46
- {
47
- "value": "tailwind",
48
- "label": "tailwind [ https://tailwindcss.com/ ]"
49
- },
50
- {
51
- "value": "styled-components",
52
- "label": "styled-components [ https://styled-components.com ]"
53
- },
54
- {
55
- "value": "@emotion/styled",
56
- "label": "emotion [ https://emotion.sh ]"
57
- },
58
- {
59
- "value": "styled-jsx",
60
- "label": "styled-jsx [ https://www.npmjs.com/package/styled-jsx ]"
41
+ "label": "SASS(.scss) [ https://sass-lang.com ]"
61
42
  },
62
43
  {
63
44
  "value": "none",
@@ -1 +1 @@
1
- {"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../../../../../packages/react/src/generators/init/init.ts"],"names":[],"mappings":"AAAA,OAAO,EAOL,KAAK,iBAAiB,EACtB,KAAK,IAAI,EACV,MAAM,YAAY,CAAC;AAEpB,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAKtC,wBAAsB,kBAAkB,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,UAAU,8BAyDtE;AAED,eAAe,kBAAkB,CAAC"}
1
+ {"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../../../../../packages/react/src/generators/init/init.ts"],"names":[],"mappings":"AACA,OAAO,EAOL,KAAK,iBAAiB,EACtB,KAAK,IAAI,EACV,MAAM,YAAY,CAAC;AAEpB,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAItC,wBAAsB,kBAAkB,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,UAAU,8BAyDtE;AAED,eAAe,kBAAkB,CAAC"}
@@ -1,10 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.reactInitGenerator = reactInitGenerator;
4
+ const internal_1 = require("@nx/devkit/internal");
4
5
  const devkit_1 = require("@nx/devkit");
5
6
  const versions_1 = require("../../utils/versions");
6
7
  const version_utils_1 = require("../../utils/version-utils");
7
- const add_plugin_1 = require("@nx/devkit/src/utils/add-plugin");
8
8
  const router_plugin_1 = require("../../plugins/router-plugin");
9
9
  async function reactInitGenerator(tree, schema) {
10
10
  const tasks = [];
@@ -23,7 +23,7 @@ async function reactInitGenerator(tree, schema) {
23
23
  process.env.NX_ADD_PLUGINS !== 'false' &&
24
24
  nxJson.useInferencePlugins !== false;
25
25
  if (schema.useReactRouterPlugin && schema.addPlugin) {
26
- await (0, add_plugin_1.addPlugin)(tree, await (0, devkit_1.createProjectGraphAsync)(), '@nx/react/router-plugin', router_plugin_1.createNodesV2, {
26
+ await (0, internal_1.addPlugin)(tree, await (0, devkit_1.createProjectGraphAsync)(), '@nx/react/router-plugin', router_plugin_1.createNodesV2, {
27
27
  buildTargetName: ['build', 'react-router:build', 'react-router-build'],
28
28
  devTargetName: ['dev', 'react-router:dev', 'react-router-dev'],
29
29
  startTargetName: ['start', 'react-router-serve', 'react-router-start'],
@@ -4,7 +4,6 @@
4
4
  "outDir": "<%= offsetFromRoot %>dist/out-tsc",
5
5
  "types": [
6
6
  "node",
7
- <%_ if (style === 'styled-jsx') { %>"@nx/react/typings/styled-jsx.d.ts",<% } _%>
8
7
  "@nx/react/typings/cssmodule.d.ts",
9
8
  "@nx/react/typings/image.d.ts"
10
9
  ]
@@ -4,7 +4,6 @@
4
4
  "outDir": "<%= offsetFromRoot %>dist/out-tsc",
5
5
  "types": [
6
6
  "node",
7
- <%_ if (style === 'styled-jsx') { _%>"@nx/react/typings/styled-jsx.d.ts",<%_ } _%>
8
7
  "@nx/react/typings/cssmodule.d.ts",
9
8
  "@nx/react/typings/image.d.ts"
10
9
  ]