@nx/next 23.0.0-beta.23 → 23.0.0-beta.25

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 (217) hide show
  1. package/dist/babel.d.ts +1 -0
  2. package/{babel.js → dist/babel.js} +2 -0
  3. package/{index.d.ts → dist/index.d.ts} +0 -1
  4. package/{plugin.d.ts → dist/plugin.d.ts} +0 -1
  5. package/{plugins → dist/plugins}/component-testing.d.ts +0 -1
  6. package/{plugins → dist/plugins}/component-testing.js +16 -10
  7. package/{plugins → dist/plugins}/with-less.d.ts +0 -1
  8. package/{plugins → dist/plugins}/with-nx.d.ts +0 -1
  9. package/{plugins → dist/plugins}/with-nx.js +1 -34
  10. package/{src → dist/src}/executors/build/build.impl.d.ts +0 -1
  11. package/{src → dist/src}/executors/build/lib/check-project.d.ts +0 -1
  12. package/{src → dist/src}/executors/build/lib/create-next-config-file.d.ts +0 -1
  13. package/{src → dist/src}/executors/build/lib/update-package-json.d.ts +0 -1
  14. package/{src → dist/src}/executors/server/custom-server.impl.d.ts +0 -1
  15. package/{src → dist/src}/executors/server/server.impl.d.ts +0 -1
  16. package/{src → dist/src}/executors/server/server.impl.js +2 -2
  17. package/{src → dist/src}/generators/application/application.d.ts +0 -1
  18. package/{src → dist/src}/generators/application/application.js +14 -12
  19. package/{src → dist/src}/generators/application/lib/add-e2e.d.ts +0 -1
  20. package/{src → dist/src}/generators/application/lib/add-jest.d.ts +0 -1
  21. package/{src → dist/src}/generators/application/lib/add-linting.d.ts +0 -1
  22. package/{src → dist/src}/generators/application/lib/add-linting.js +4 -4
  23. package/{src → dist/src}/generators/application/lib/add-plugin.d.ts +0 -1
  24. package/{src → dist/src}/generators/application/lib/add-project.d.ts +0 -1
  25. package/{src → dist/src}/generators/application/lib/create-application-files.d.ts +0 -1
  26. package/{src → dist/src}/generators/application/lib/create-application-files.helpers.d.ts +0 -1
  27. package/{src → dist/src}/generators/application/lib/normalize-options.d.ts +0 -1
  28. package/{src → dist/src}/generators/application/lib/normalize-options.js +2 -2
  29. package/{src → dist/src}/generators/application/lib/set-defaults.d.ts +0 -1
  30. package/{src → dist/src}/generators/application/lib/update-cypress-tsconfig.d.ts +0 -1
  31. package/{src → dist/src}/generators/component/component.d.ts +0 -1
  32. package/{src → dist/src}/generators/component/component.js +2 -0
  33. package/{src → dist/src}/generators/convert-to-inferred/convert-to-inferred.d.ts +0 -1
  34. package/{src → dist/src}/generators/convert-to-inferred/convert-to-inferred.js +2 -0
  35. package/{src → dist/src}/generators/convert-to-inferred/lib/build-post-target-transformer.d.ts +0 -1
  36. package/{src → dist/src}/generators/convert-to-inferred/lib/serve-post-target-tranformer.d.ts +0 -1
  37. package/{src → dist/src}/generators/convert-to-inferred/lib/update-next-config.d.ts +0 -1
  38. package/{src → dist/src}/generators/convert-to-inferred/lib/utils.d.ts +0 -1
  39. package/{src → dist/src}/generators/custom-server/custom-server.d.ts +0 -1
  40. package/{src → dist/src}/generators/custom-server/custom-server.js +2 -0
  41. package/{src → dist/src}/generators/cypress-component-configuration/cypress-component-configuration.d.ts +0 -1
  42. package/{src → dist/src}/generators/cypress-component-configuration/cypress-component-configuration.js +7 -38
  43. package/{src → dist/src}/generators/init/init.d.ts +0 -1
  44. package/{src → dist/src}/generators/init/init.js +8 -39
  45. package/{src → dist/src}/generators/init/schema.json +1 -1
  46. package/{src → dist/src}/generators/library/lib/normalize-options.d.ts +0 -1
  47. package/{src → dist/src}/generators/library/lib/update-vite-config.d.ts +0 -1
  48. package/{src → dist/src}/generators/library/library.d.ts +0 -1
  49. package/{src → dist/src}/generators/library/library.js +18 -16
  50. package/{src → dist/src}/generators/page/page.d.ts +0 -1
  51. package/{src → dist/src}/generators/page/page.js +2 -0
  52. package/{src → dist/src}/migrations/update-22-0-0/add-svgr-to-next-config.d.ts +0 -1
  53. package/dist/src/migrations/update-22-2-0/ai-instructions-for-next-16.md +845 -0
  54. package/dist/src/migrations/update-23-0-0/migrate-create-nodes-v2-to-create-nodes.d.ts +9 -0
  55. package/dist/src/migrations/update-23-0-0/migrate-create-nodes-v2-to-create-nodes.js +134 -0
  56. package/dist/src/migrations/update-23-0-0/migrate-create-nodes-v2-to-create-nodes.md +25 -0
  57. package/{src → dist/src}/plugins/plugin.d.ts +0 -1
  58. package/{src → dist/src}/plugins/plugin.js +4 -2
  59. package/{src → dist/src}/utils/add-gitignore-entry.d.ts +0 -1
  60. package/{src → dist/src}/utils/add-swc-to-custom-server.d.ts +0 -1
  61. package/{src → dist/src}/utils/add-swc-to-custom-server.js +1 -1
  62. package/dist/src/utils/assert-supported-next-version.d.ts +2 -0
  63. package/dist/src/utils/assert-supported-next-version.js +8 -0
  64. package/{src → dist/src}/utils/compose-plugins.d.ts +0 -1
  65. package/dist/src/utils/config-invalid-function.fixture.d.ts +1 -0
  66. package/dist/src/utils/config-invalid-function.fixture.js +3 -0
  67. package/dist/src/utils/config-not-a-function.fixture.d.ts +1 -0
  68. package/dist/src/utils/config-not-a-function.fixture.js +3 -0
  69. package/{src → dist/src}/utils/config.d.ts +0 -1
  70. package/{src → dist/src}/utils/constants.d.ts +0 -1
  71. package/{src → dist/src}/utils/create-cli-options.d.ts +0 -1
  72. package/{src → dist/src}/utils/create-copy-plugin.d.ts +0 -1
  73. package/{src → dist/src}/utils/deprecation.d.ts +0 -1
  74. package/{src → dist/src}/utils/jest-config-util.d.ts +0 -1
  75. package/{src → dist/src}/utils/runtime-version-utils.d.ts +0 -1
  76. package/{src → dist/src}/utils/styles.d.ts +0 -1
  77. package/{src → dist/src}/utils/styles.js +1 -1
  78. package/{src → dist/src}/utils/types.d.ts +0 -1
  79. package/{src → dist/src}/utils/version-utils.d.ts +0 -1
  80. package/{src → dist/src}/utils/versions.d.ts +5 -5
  81. package/{src → dist/src}/utils/versions.js +8 -6
  82. package/{tailwind.d.ts → dist/tailwind.d.ts} +0 -1
  83. package/dist/typings/image.d.ts +12 -0
  84. package/executors.json +4 -4
  85. package/generators.json +16 -16
  86. package/migrations.json +8 -35
  87. package/package.json +94 -14
  88. package/babel.d.ts +0 -1
  89. package/babel.d.ts.map +0 -1
  90. package/index.d.ts.map +0 -1
  91. package/plugin.d.ts.map +0 -1
  92. package/plugins/component-testing.d.ts.map +0 -1
  93. package/plugins/with-less.d.ts.map +0 -1
  94. package/plugins/with-nx.d.ts.map +0 -1
  95. package/src/executors/build/build.impl.d.ts.map +0 -1
  96. package/src/executors/build/lib/check-project.d.ts.map +0 -1
  97. package/src/executors/build/lib/create-next-config-file.d.ts.map +0 -1
  98. package/src/executors/build/lib/update-package-json.d.ts.map +0 -1
  99. package/src/executors/server/custom-server.impl.d.ts.map +0 -1
  100. package/src/executors/server/server.impl.d.ts.map +0 -1
  101. package/src/generators/application/application.d.ts.map +0 -1
  102. package/src/generators/application/lib/add-e2e.d.ts.map +0 -1
  103. package/src/generators/application/lib/add-jest.d.ts.map +0 -1
  104. package/src/generators/application/lib/add-linting.d.ts.map +0 -1
  105. package/src/generators/application/lib/add-plugin.d.ts.map +0 -1
  106. package/src/generators/application/lib/add-project.d.ts.map +0 -1
  107. package/src/generators/application/lib/create-application-files.d.ts.map +0 -1
  108. package/src/generators/application/lib/create-application-files.helpers.d.ts.map +0 -1
  109. package/src/generators/application/lib/normalize-options.d.ts.map +0 -1
  110. package/src/generators/application/lib/set-defaults.d.ts.map +0 -1
  111. package/src/generators/application/lib/update-cypress-tsconfig.d.ts.map +0 -1
  112. package/src/generators/component/component.d.ts.map +0 -1
  113. package/src/generators/convert-to-inferred/convert-to-inferred.d.ts.map +0 -1
  114. package/src/generators/convert-to-inferred/lib/build-post-target-transformer.d.ts.map +0 -1
  115. package/src/generators/convert-to-inferred/lib/serve-post-target-tranformer.d.ts.map +0 -1
  116. package/src/generators/convert-to-inferred/lib/update-next-config.d.ts.map +0 -1
  117. package/src/generators/convert-to-inferred/lib/utils.d.ts.map +0 -1
  118. package/src/generators/custom-server/custom-server.d.ts.map +0 -1
  119. package/src/generators/cypress-component-configuration/cypress-component-configuration.d.ts.map +0 -1
  120. package/src/generators/init/init.d.ts.map +0 -1
  121. package/src/generators/library/lib/normalize-options.d.ts.map +0 -1
  122. package/src/generators/library/lib/update-vite-config.d.ts.map +0 -1
  123. package/src/generators/library/library.d.ts.map +0 -1
  124. package/src/generators/page/page.d.ts.map +0 -1
  125. package/src/migrations/update-22-0-0/add-svgr-to-next-config.d.ts.map +0 -1
  126. package/src/plugins/plugin.d.ts.map +0 -1
  127. package/src/utils/add-gitignore-entry.d.ts.map +0 -1
  128. package/src/utils/add-swc-to-custom-server.d.ts.map +0 -1
  129. package/src/utils/compose-plugins.d.ts.map +0 -1
  130. package/src/utils/config-invalid-function.fixture.d.ts +0 -1
  131. package/src/utils/config-invalid-function.fixture.d.ts.map +0 -1
  132. package/src/utils/config-invalid-function.fixture.js +0 -1
  133. package/src/utils/config-not-a-function.fixture.d.ts +0 -1
  134. package/src/utils/config-not-a-function.fixture.d.ts.map +0 -1
  135. package/src/utils/config-not-a-function.fixture.js +0 -1
  136. package/src/utils/config.d.ts.map +0 -1
  137. package/src/utils/constants.d.ts.map +0 -1
  138. package/src/utils/create-cli-options.d.ts.map +0 -1
  139. package/src/utils/create-copy-plugin.d.ts.map +0 -1
  140. package/src/utils/deprecation.d.ts.map +0 -1
  141. package/src/utils/jest-config-util.d.ts.map +0 -1
  142. package/src/utils/runtime-version-utils.d.ts.map +0 -1
  143. package/src/utils/styles.d.ts.map +0 -1
  144. package/src/utils/types.d.ts.map +0 -1
  145. package/src/utils/version-utils.d.ts.map +0 -1
  146. package/src/utils/versions.d.ts.map +0 -1
  147. package/tailwind.d.ts.map +0 -1
  148. /package/{LICENSE → dist/LICENSE} +0 -0
  149. /package/{index.js → dist/index.js} +0 -0
  150. /package/{plugin.js → dist/plugin.js} +0 -0
  151. /package/{plugins → dist/plugins}/with-less.js +0 -0
  152. /package/{src → dist/src}/executors/build/build.impl.js +0 -0
  153. /package/{src → dist/src}/executors/build/lib/check-project.js +0 -0
  154. /package/{src → dist/src}/executors/build/lib/create-next-config-file.js +0 -0
  155. /package/{src → dist/src}/executors/build/lib/update-package-json.js +0 -0
  156. /package/{src → dist/src}/executors/build/schema.json +0 -0
  157. /package/{src → dist/src}/executors/server/custom-server.impl.js +0 -0
  158. /package/{src → dist/src}/executors/server/schema.json +0 -0
  159. /package/{src → dist/src}/generators/application/files/app/api/hello/route.ts__tmpl__ +0 -0
  160. /package/{src → dist/src}/generators/application/files/app/global.__stylesExt____tmpl__ +0 -0
  161. /package/{src → dist/src}/generators/application/files/app/page.module.__style__ +0 -0
  162. /package/{src → dist/src}/generators/application/files/app/page.tsx__tmpl__ +0 -0
  163. /package/{src → dist/src}/generators/application/files/app-default-layout/layout.tsx__tmpl__ +0 -0
  164. /package/{src → dist/src}/generators/application/files/common/__dot__babelrc +0 -0
  165. /package/{src → dist/src}/generators/application/files/common/index.d.ts__tmpl__ +0 -0
  166. /package/{src → dist/src}/generators/application/files/common/next-env.d.ts__tmpl__ +0 -0
  167. /package/{src → dist/src}/generators/application/files/common/next.config.js__tmpl__ +0 -0
  168. /package/{src → dist/src}/generators/application/files/common/public/.gitkeep +0 -0
  169. /package/{src → dist/src}/generators/application/files/common/public/favicon.ico +0 -0
  170. /package/{src → dist/src}/generators/application/files/common/specs/__fileName__.spec.tsx__tmpl__ +0 -0
  171. /package/{src → dist/src}/generators/application/files/common/tsconfig.json__tmpl__ +0 -0
  172. /package/{src → dist/src}/generators/application/files/pages/__fileName__.module.__style__ +0 -0
  173. /package/{src → dist/src}/generators/application/files/pages/__fileName__.tsx__tmpl__ +0 -0
  174. /package/{src → dist/src}/generators/application/files/pages/_app.tsx__tmpl__ +0 -0
  175. /package/{src → dist/src}/generators/application/files/pages/styles.__stylesExt____tmpl__ +0 -0
  176. /package/{src → dist/src}/generators/application/lib/add-e2e.js +0 -0
  177. /package/{src → dist/src}/generators/application/lib/add-jest.js +0 -0
  178. /package/{src → dist/src}/generators/application/lib/add-plugin.js +0 -0
  179. /package/{src → dist/src}/generators/application/lib/add-project.js +0 -0
  180. /package/{src → dist/src}/generators/application/lib/create-application-files.helpers.js +0 -0
  181. /package/{src → dist/src}/generators/application/lib/create-application-files.js +0 -0
  182. /package/{src → dist/src}/generators/application/lib/set-defaults.js +0 -0
  183. /package/{src → dist/src}/generators/application/lib/update-cypress-tsconfig.js +0 -0
  184. /package/{src → dist/src}/generators/application/schema.d.ts +0 -0
  185. /package/{src → dist/src}/generators/application/schema.json +0 -0
  186. /package/{src → dist/src}/generators/component/schema.json +0 -0
  187. /package/{src → dist/src}/generators/convert-to-inferred/lib/build-post-target-transformer.js +0 -0
  188. /package/{src → dist/src}/generators/convert-to-inferred/lib/serve-post-target-tranformer.js +0 -0
  189. /package/{src → dist/src}/generators/convert-to-inferred/lib/update-next-config.js +0 -0
  190. /package/{src → dist/src}/generators/convert-to-inferred/lib/utils.js +0 -0
  191. /package/{src → dist/src}/generators/convert-to-inferred/schema.json +0 -0
  192. /package/{src → dist/src}/generators/custom-server/files/server/main.ts__tmpl__ +0 -0
  193. /package/{src → dist/src}/generators/custom-server/files/tsconfig.server.json__tmpl__ +0 -0
  194. /package/{src → dist/src}/generators/custom-server/schema.d.ts +0 -0
  195. /package/{src → dist/src}/generators/custom-server/schema.json +0 -0
  196. /package/{src → dist/src}/generators/cypress-component-configuration/schema.d.ts +0 -0
  197. /package/{src → dist/src}/generators/cypress-component-configuration/schema.json +0 -0
  198. /package/{src → dist/src}/generators/init/schema.d.ts +0 -0
  199. /package/{src → dist/src}/generators/library/lib/normalize-options.js +0 -0
  200. /package/{src → dist/src}/generators/library/lib/update-vite-config.js +0 -0
  201. /package/{src → dist/src}/generators/library/schema.d.ts +0 -0
  202. /package/{src → dist/src}/generators/library/schema.json +0 -0
  203. /package/{src → dist/src}/generators/page/schema.d.ts +0 -0
  204. /package/{src → dist/src}/generators/page/schema.json +0 -0
  205. /package/{src → dist/src}/migrations/update-22-0-0/add-svgr-to-next-config.js +0 -0
  206. /package/{src → dist/src}/utils/add-gitignore-entry.js +0 -0
  207. /package/{src → dist/src}/utils/compose-plugins.js +0 -0
  208. /package/{src → dist/src}/utils/config.js +0 -0
  209. /package/{src → dist/src}/utils/constants.js +0 -0
  210. /package/{src → dist/src}/utils/create-cli-options.js +0 -0
  211. /package/{src → dist/src}/utils/create-copy-plugin.js +0 -0
  212. /package/{src → dist/src}/utils/deprecation.js +0 -0
  213. /package/{src → dist/src}/utils/jest-config-util.js +0 -0
  214. /package/{src → dist/src}/utils/runtime-version-utils.js +0 -0
  215. /package/{src → dist/src}/utils/types.js +0 -0
  216. /package/{src → dist/src}/utils/version-utils.js +0 -0
  217. /package/{tailwind.js → dist/tailwind.js} +0 -0
@@ -0,0 +1 @@
1
+ export {};
@@ -1,3 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
1
3
  /*
2
4
  * Babel preset to provide Next.js support for Nx.
3
5
  */
@@ -5,4 +5,3 @@ export { libraryGenerator } from './src/generators/library/library';
5
5
  export { pageGenerator } from './src/generators/page/page';
6
6
  export { withNx } from './plugins/with-nx';
7
7
  export { composePlugins } from './src/utils/compose-plugins';
8
- //# sourceMappingURL=index.d.ts.map
@@ -1,2 +1 @@
1
1
  export { createNodes, createNodesV2, NextPluginOptions, } from './src/plugins/plugin';
2
- //# sourceMappingURL=plugin.d.ts.map
@@ -1,3 +1,2 @@
1
1
  import { NxComponentTestingOptions } from '@nx/cypress/plugins/cypress-preset';
2
2
  export declare function nxComponentTestingPreset(pathToConfig: string, options?: NxComponentTestingOptions): any;
3
- //# sourceMappingURL=component-testing.d.ts.map
@@ -6,7 +6,9 @@ const internal_1 = require("@nx/cypress/internal");
6
6
  const devkit_1 = require("@nx/devkit");
7
7
  const internal_2 = require("@nx/js/internal");
8
8
  const react_1 = require("@nx/react");
9
+ const internal_3 = require("@nx/react/internal");
9
10
  const webpack_1 = require("@nx/webpack");
11
+ const internal_4 = require("@nx/webpack/internal");
10
12
  const configuration_1 = require("nx/src/config/configuration");
11
13
  const path_1 = require("path");
12
14
  function nxComponentTestingPreset(pathToConfig, options) {
@@ -79,16 +81,20 @@ Able to find CT project, ${!!ctProjectConfig}.`);
79
81
  compiler: options?.compiler || 'swc',
80
82
  tsConfig: (0, path_1.join)(ctExecutorContext.root, ctProjectConfig.root, 'tsconfig.json'),
81
83
  };
82
- const configure = (0, webpack_1.composePluginsSync)((0, webpack_1.withNx)({
83
- target: 'web',
84
- styles: [],
85
- scripts: [],
86
- postcssConfig: ctProjectConfig.root,
87
- }), (0, react_1.withReact)({}));
88
- const webpackConfig = configure({}, {
89
- options: webpackOptions,
90
- context: ctExecutorContext,
91
- });
84
+ // Nx composes these helpers internally for the Cypress CT preset; suppress
85
+ // their deprecation warning so it fires only for user-authored configs.
86
+ const webpackConfig = (0, internal_4.suppressWebpackComposeHelperWarnings)(() => (0, internal_3.suppressReactComposeHelperWarnings)(() => {
87
+ const configure = (0, webpack_1.composePluginsSync)((0, webpack_1.withNx)({
88
+ target: 'web',
89
+ styles: [],
90
+ scripts: [],
91
+ postcssConfig: ctProjectConfig.root,
92
+ }), (0, react_1.withReact)({}));
93
+ return configure({}, {
94
+ options: webpackOptions,
95
+ context: ctExecutorContext,
96
+ });
97
+ }));
92
98
  return {
93
99
  ...(0, cypress_preset_1.nxBaseCypressPreset)(pathToConfig),
94
100
  specPattern: '**/*.cy.{js,jsx,ts,tsx}',
@@ -1,4 +1,3 @@
1
1
  import { NextConfigFn } from '../src/utils/config';
2
2
  import { WithNxOptions } from './with-nx';
3
3
  export declare function withLess(configOrFn: NextConfigFn | WithNxOptions): NextConfigFn;
4
- //# sourceMappingURL=with-less.d.ts.map
@@ -28,4 +28,3 @@ export declare function getNextConfig(nextConfig?: WithNxOptions, context?: With
28
28
  export declare function getAliasForProject(node: ProjectGraphProjectNode, paths: Record<string, string[]>): null | string;
29
29
  export declare function forNextVersion(range: string, fn: () => void): void;
30
30
  export { withNx };
31
- //# sourceMappingURL=with-nx.d.ts.map
@@ -1,37 +1,4 @@
1
1
  "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || (function () {
19
- var ownKeys = function(o) {
20
- ownKeys = Object.getOwnPropertyNames || function (o) {
21
- var ar = [];
22
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
- return ar;
24
- };
25
- return ownKeys(o);
26
- };
27
- return function (mod) {
28
- if (mod && mod.__esModule) return mod;
29
- var result = {};
30
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
- __setModuleDefault(result, mod);
32
- return result;
33
- };
34
- })();
35
2
  Object.defineProperty(exports, "__esModule", { value: true });
36
3
  exports.getNextConfig = getNextConfig;
37
4
  exports.getAliasForProject = getAliasForProject;
@@ -95,7 +62,7 @@ function getNxContext(graph, target) {
95
62
  */
96
63
  function withNx(_nextConfig = {}, context = getWithNxContext()) {
97
64
  return async (phase) => {
98
- const { PHASE_PRODUCTION_SERVER, PHASE_DEVELOPMENT_SERVER } = await Promise.resolve().then(() => __importStar(require('next/constants')));
65
+ const { PHASE_PRODUCTION_SERVER, PHASE_DEVELOPMENT_SERVER, } = require('next/constants');
99
66
  // Three scenarios where we want to skip graph creation:
100
67
  // 1. Running production server means the build is already done so we just need to start the Next.js server.
101
68
  // 2. During graph creation (i.e. create nodes), we won't have a graph to read, and it is not needed anyway since it's a build-time concern.
@@ -3,4 +3,3 @@ import { NextBuildBuilderOptions } from '../../utils/types';
3
3
  export default function buildExecutor(options: NextBuildBuilderOptions, context: ExecutorContext): Promise<{
4
4
  success: boolean;
5
5
  }>;
6
- //# sourceMappingURL=build.impl.d.ts.map
@@ -1,2 +1 @@
1
1
  export declare function checkPublicDirectory(root: string): void;
2
- //# sourceMappingURL=check-project.d.ts.map
@@ -12,4 +12,3 @@ export declare function getRelativeImports({ file, content, }: {
12
12
  content: string;
13
13
  }): string[];
14
14
  export declare function ensureFileExtensions(files: string[], absoluteDir: string): string[];
15
- //# sourceMappingURL=create-next-config-file.d.ts.map
@@ -1,4 +1,3 @@
1
1
  import type { ExecutorContext } from '@nx/devkit';
2
2
  import type { PackageJson } from 'nx/src/utils/package-json';
3
3
  export declare function updatePackageJson(packageJson: PackageJson, context: ExecutorContext): void;
4
- //# sourceMappingURL=update-package-json.d.ts.map
@@ -4,4 +4,3 @@ export default function serveExecutor(options: NextServeBuilderOptions, context:
4
4
  success: boolean;
5
5
  baseUrl: string;
6
6
  }, void, unknown>;
7
- //# sourceMappingURL=custom-server.impl.d.ts.map
@@ -4,4 +4,3 @@ export default function serveExecutor(options: NextServeBuilderOptions, context:
4
4
  success: boolean;
5
5
  baseUrl: string;
6
6
  }, void, any>;
7
- //# sourceMappingURL=server.impl.d.ts.map
@@ -8,7 +8,7 @@ const path_1 = require("path");
8
8
  const child_process_1 = require("child_process");
9
9
  const custom_server_impl_1 = tslib_1.__importDefault(require("./custom-server.impl"));
10
10
  const create_cli_options_1 = require("../../utils/create-cli-options");
11
- const wait_for_port_open_1 = require("@nx/web/src/utils/wait-for-port-open");
11
+ const internal_2 = require("@nx/web/internal");
12
12
  const runtime_version_utils_1 = require("../../utils/runtime-version-utils");
13
13
  const deprecation_1 = require("../../utils/deprecation");
14
14
  async function* serveExecutor(options, context) {
@@ -93,7 +93,7 @@ async function* serveExecutor(options, context) {
93
93
  process.on('SIGINT', () => killServer());
94
94
  process.on('SIGTERM', () => killServer());
95
95
  process.on('SIGHUP', () => killServer());
96
- await (0, wait_for_port_open_1.waitForPortOpen)(options.port, { host: options.hostname });
96
+ await (0, internal_2.waitForPortOpen)(options.port, { host: options.hostname });
97
97
  next({
98
98
  success: true,
99
99
  baseUrl: `http://${options.hostname ?? 'localhost'}:${options.port}`,
@@ -2,4 +2,3 @@ import { GeneratorCallback, Tree } from '@nx/devkit';
2
2
  import { Schema } from './schema';
3
3
  export declare function applicationGenerator(host: Tree, schema: Schema): Promise<GeneratorCallback>;
4
4
  export declare function applicationGeneratorInternal(host: Tree, schema: Schema): Promise<GeneratorCallback>;
5
- //# sourceMappingURL=application.d.ts.map
@@ -4,9 +4,10 @@ exports.applicationGenerator = applicationGenerator;
4
4
  exports.applicationGeneratorInternal = applicationGeneratorInternal;
5
5
  const internal_1 = require("@nx/devkit/internal");
6
6
  const devkit_1 = require("@nx/devkit");
7
+ const assert_supported_next_version_1 = require("../../utils/assert-supported-next-version");
7
8
  const js_1 = require("@nx/js");
8
- const versions_1 = require("@nx/react/src/utils/versions");
9
- const version_utils_1 = require("@nx/react/src/utils/version-utils");
9
+ const internal_2 = require("@nx/react/internal");
10
+ const internal_3 = require("@nx/react/internal");
10
11
  const normalize_options_1 = require("./lib/normalize-options");
11
12
  const add_e2e_1 = require("./lib/add-e2e");
12
13
  const add_jest_1 = require("./lib/add-jest");
@@ -18,8 +19,8 @@ const styles_1 = require("../../utils/styles");
18
19
  const add_linting_1 = require("./lib/add-linting");
19
20
  const custom_server_1 = require("../custom-server/custom-server");
20
21
  const update_cypress_tsconfig_1 = require("./lib/update-cypress-tsconfig");
21
- const versions_2 = require("../../utils/versions");
22
- const internal_2 = require("@nx/js/internal");
22
+ const versions_1 = require("../../utils/versions");
23
+ const internal_4 = require("@nx/js/internal");
23
24
  const add_swc_to_custom_server_1 = require("../../utils/add-swc-to-custom-server");
24
25
  const jest_config_util_1 = require("../../utils/jest-config-util");
25
26
  async function applicationGenerator(host, schema) {
@@ -30,8 +31,9 @@ async function applicationGenerator(host, schema) {
30
31
  });
31
32
  }
32
33
  async function applicationGeneratorInternal(host, schema) {
34
+ (0, assert_supported_next_version_1.assertSupportedNextVersion)(host);
33
35
  const tasks = [];
34
- const addTsPlugin = (0, internal_2.shouldConfigureTsSolutionSetup)(host, schema.addPlugin, schema.useTsSolution);
36
+ const addTsPlugin = (0, internal_4.shouldConfigureTsSolutionSetup)(host, schema.addPlugin, schema.useTsSolution);
35
37
  const jsInitTask = await (0, js_1.initGenerator)(host, {
36
38
  js: schema.js,
37
39
  skipPackageJson: schema.skipPackageJson,
@@ -52,7 +54,7 @@ async function applicationGeneratorInternal(host, schema) {
52
54
  // If we are using the new TS solution
53
55
  // We need to update the workspace file (package.json or pnpm-workspaces.yaml) to include the new project
54
56
  if (options.isTsSolutionSetup) {
55
- await (0, internal_2.addProjectToTsSolutionWorkspace)(host, options.appProjectRoot);
57
+ await (0, internal_4.addProjectToTsSolutionWorkspace)(host, options.appProjectRoot);
56
58
  }
57
59
  const lintTask = await (0, add_linting_1.addLinting)(host, options);
58
60
  tasks.push(lintTask);
@@ -79,25 +81,25 @@ async function applicationGeneratorInternal(host, schema) {
79
81
  });
80
82
  }
81
83
  if (!options.skipPackageJson) {
82
- const reactVersions = await (0, version_utils_1.getReactDependenciesVersionsToInstall)(host);
84
+ const reactVersions = await (0, internal_3.getReactDependenciesVersionsToInstall)(host);
83
85
  const devDependencies = {
84
86
  '@types/react': reactVersions['@types/react'],
85
87
  '@types/react-dom': reactVersions['@types/react-dom'],
86
88
  };
87
89
  if (options.unitTestRunner && options.unitTestRunner !== 'none') {
88
- devDependencies['@testing-library/react'] = versions_1.testingLibraryReactVersion;
89
- devDependencies['@testing-library/dom'] = versions_1.testingLibraryDomVersion;
90
+ devDependencies['@testing-library/react'] = internal_2.testingLibraryReactVersion;
91
+ devDependencies['@testing-library/dom'] = internal_2.testingLibraryDomVersion;
90
92
  }
91
- tasks.push((0, devkit_1.addDependenciesToPackageJson)(host, { tslib: versions_2.tsLibVersion }, devDependencies));
93
+ tasks.push((0, devkit_1.addDependenciesToPackageJson)(host, { tslib: versions_1.tsLibVersion }, devDependencies, undefined, true));
92
94
  }
93
- (0, internal_2.updateTsconfigFiles)(host, options.appProjectRoot, 'tsconfig.json', {
95
+ (0, internal_4.updateTsconfigFiles)(host, options.appProjectRoot, 'tsconfig.json', {
94
96
  jsx: 'preserve',
95
97
  module: 'esnext',
96
98
  moduleResolution: 'bundler',
97
99
  }, options.linter === 'eslint'
98
100
  ? ['.next', 'eslint.config.js', 'eslint.config.cjs', 'eslint.config.mjs']
99
101
  : ['.next'], options.src ? 'src' : '.');
100
- (0, internal_2.sortPackageJsonFields)(host, options.appProjectRoot);
102
+ (0, internal_4.sortPackageJsonFields)(host, options.appProjectRoot);
101
103
  if (!options.skipFormat) {
102
104
  await (0, devkit_1.formatFiles)(host);
103
105
  }
@@ -1,4 +1,3 @@
1
1
  import { Tree, GeneratorCallback } from '@nx/devkit';
2
2
  import { NormalizedSchema } from './normalize-options';
3
3
  export declare function addE2e(host: Tree, options: NormalizedSchema): Promise<GeneratorCallback>;
4
- //# sourceMappingURL=add-e2e.d.ts.map
@@ -1,4 +1,3 @@
1
1
  import { Tree, GeneratorCallback } from '@nx/devkit';
2
2
  import { NormalizedSchema } from './normalize-options';
3
3
  export declare function addJest(host: Tree, options: NormalizedSchema): Promise<GeneratorCallback>;
4
- //# sourceMappingURL=add-jest.d.ts.map
@@ -1,4 +1,3 @@
1
1
  import { GeneratorCallback, Tree } from '@nx/devkit';
2
2
  import { NormalizedSchema } from './normalize-options';
3
3
  export declare function addLinting(host: Tree, options: NormalizedSchema): Promise<GeneratorCallback>;
4
- //# sourceMappingURL=add-linting.d.ts.map
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.addLinting = addLinting;
4
4
  const eslint_1 = require("@nx/eslint");
5
5
  const devkit_1 = require("@nx/devkit");
6
- const lint_1 = require("@nx/react/src/utils/lint");
6
+ const react_1 = require("@nx/react");
7
7
  const internal_1 = require("@nx/eslint/internal");
8
8
  const version_utils_1 = require("../../../utils/version-utils");
9
9
  async function addLinting(host, options) {
@@ -69,11 +69,11 @@ async function addLinting(host, options) {
69
69
  }
70
70
  if (!options.skipPackageJson) {
71
71
  const eslintConfigNextVersion = await (0, version_utils_1.getEslintConfigNextDependenciesVersionsToInstall)(host);
72
- tasks.push((0, devkit_1.addDependenciesToPackageJson)(host, lint_1.extraEslintDependencies.dependencies, {
73
- ...lint_1.extraEslintDependencies.devDependencies,
72
+ tasks.push((0, devkit_1.addDependenciesToPackageJson)(host, react_1.extraEslintDependencies.dependencies, {
73
+ ...react_1.extraEslintDependencies.devDependencies,
74
74
  'eslint-config-next': eslintConfigNextVersion,
75
75
  '@next/eslint-plugin-next': eslintConfigNextVersion,
76
- }));
76
+ }, undefined, true));
77
77
  }
78
78
  return (0, devkit_1.runTasksInSerial)(...tasks);
79
79
  }
@@ -1,3 +1,2 @@
1
1
  import { Tree } from '@nx/devkit';
2
2
  export declare function addPlugin(tree: Tree): void;
3
- //# sourceMappingURL=add-plugin.d.ts.map
@@ -1,4 +1,3 @@
1
1
  import { NormalizedSchema } from './normalize-options';
2
2
  import { Tree } from '@nx/devkit';
3
3
  export declare function addProject(host: Tree, options: NormalizedSchema): void;
4
- //# sourceMappingURL=add-project.d.ts.map
@@ -1,4 +1,3 @@
1
1
  import { Tree } from '@nx/devkit';
2
2
  import { NormalizedSchema } from './normalize-options';
3
3
  export declare function createApplicationFiles(host: Tree, options: NormalizedSchema): Promise<void>;
4
- //# sourceMappingURL=create-application-files.d.ts.map
@@ -1,3 +1,2 @@
1
1
  export declare function createAppJsx(name: string): string;
2
2
  export declare function createStyleRules(): string;
3
- //# sourceMappingURL=create-application-files.helpers.d.ts.map
@@ -14,4 +14,3 @@ export interface NormalizedSchema extends Omit<Schema, 'name' | 'useTsSolution'>
14
14
  js?: boolean;
15
15
  }
16
16
  export declare function normalizeOptions(host: Tree, options: Schema): Promise<NormalizedSchema>;
17
- //# sourceMappingURL=normalize-options.d.ts.map
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.normalizeOptions = normalizeOptions;
4
4
  const devkit_1 = require("@nx/devkit");
5
5
  const internal_1 = require("@nx/devkit/internal");
6
- const assertion_1 = require("@nx/react/src/utils/assertion");
6
+ const react_1 = require("@nx/react");
7
7
  const internal_2 = require("@nx/js/internal");
8
8
  async function normalizeOptions(host, options) {
9
9
  await (0, internal_1.ensureRootProjectName)(options, 'application');
@@ -29,7 +29,7 @@ async function normalizeOptions(host, options) {
29
29
  const fileName = 'index';
30
30
  const appDir = options.appDir ?? true;
31
31
  const src = options.src ?? true;
32
- (0, assertion_1.assertValidStyle)(options.style);
32
+ (0, react_1.assertValidStyle)(options.style);
33
33
  return {
34
34
  ...options,
35
35
  appDir,
@@ -1,4 +1,3 @@
1
1
  import { Tree } from '@nx/devkit';
2
2
  import { NormalizedSchema } from './normalize-options';
3
3
  export declare function setDefaults(host: Tree, options: NormalizedSchema): void;
4
- //# sourceMappingURL=set-defaults.d.ts.map
@@ -1,4 +1,3 @@
1
1
  import { Tree } from '@nx/devkit';
2
2
  import { NormalizedSchema } from './normalize-options';
3
3
  export declare function updateCypressTsConfig(host: Tree, options: NormalizedSchema): void;
4
- //# sourceMappingURL=update-cypress-tsconfig.d.ts.map
@@ -8,4 +8,3 @@ interface Schema {
8
8
  }
9
9
  export declare function componentGenerator(host: Tree, options: Schema): Promise<import("@nx/devkit").GeneratorCallback>;
10
10
  export default componentGenerator;
11
- //# sourceMappingURL=component.d.ts.map
@@ -5,11 +5,13 @@ const internal_1 = require("@nx/devkit/internal");
5
5
  const devkit_1 = require("@nx/devkit");
6
6
  const react_1 = require("@nx/react");
7
7
  const styles_1 = require("../../utils/styles");
8
+ const assert_supported_next_version_1 = require("../../utils/assert-supported-next-version");
8
9
  /*
9
10
  * This schematic is basically the React one, but for Next we need
10
11
  * extra dependencies for css, sass, less style options.
11
12
  */
12
13
  async function componentGenerator(host, options) {
14
+ (0, assert_supported_next_version_1.assertSupportedNextVersion)(host);
13
15
  // we only need to provide the path to get the project, we let the react
14
16
  // generator handle the rest
15
17
  const { project: projectName } = await (0, internal_1.determineArtifactNameAndDirectoryOptions)(host, {
@@ -5,4 +5,3 @@ interface Schema {
5
5
  }
6
6
  export declare function convertToInferred(tree: Tree, options: Schema): Promise<() => void>;
7
7
  export default convertToInferred;
8
- //# sourceMappingURL=convert-to-inferred.d.ts.map
@@ -6,7 +6,9 @@ const internal_1 = require("@nx/devkit/internal");
6
6
  const plugin_1 = require("../../plugins/plugin");
7
7
  const build_post_target_transformer_1 = require("./lib/build-post-target-transformer");
8
8
  const serve_post_target_tranformer_1 = require("./lib/serve-post-target-tranformer");
9
+ const assert_supported_next_version_1 = require("../../utils/assert-supported-next-version");
9
10
  async function convertToInferred(tree, options) {
11
+ (0, assert_supported_next_version_1.assertSupportedNextVersion)(tree);
10
12
  const projectGraph = await (0, devkit_1.createProjectGraphAsync)();
11
13
  const migrationLogs = new internal_1.AggregatedLog();
12
14
  const migratedProjects = await (0, internal_1.migrateProjectExecutorsToPlugin)(tree, projectGraph, '@nx/next/plugin', plugin_1.createNodesV2, {
@@ -5,4 +5,3 @@ export declare function buildPostTargetTransformer(migrationLogs: AggregatedLog)
5
5
  projectName: string;
6
6
  root: string;
7
7
  }, inferredTargetConfiguration: TargetConfiguration) => TargetConfiguration<NextBuildBuilderOptions>;
8
- //# sourceMappingURL=build-post-target-transformer.d.ts.map
@@ -5,4 +5,3 @@ export declare function servePosTargetTransformer(migrationLogs: AggregatedLog):
5
5
  projectName: string;
6
6
  root: string;
7
7
  }, inferredTargetConfiguration: InferredTargetConfiguration) => TargetConfiguration<NextServeBuilderOptions>;
8
- //# sourceMappingURL=serve-post-target-tranformer.d.ts.map
@@ -4,4 +4,3 @@ export declare function updateNextConfig(tree: Tree, updatedConfigFileContents:
4
4
  projectName: string;
5
5
  root: string;
6
6
  }, migrationLogs: AggregatedLog): void;
7
- //# sourceMappingURL=update-next-config.d.ts.map
@@ -1,2 +1 @@
1
1
  export declare function findNextConfigPath(tree: any, projectRoot: any): string;
2
- //# sourceMappingURL=utils.d.ts.map
@@ -1,4 +1,3 @@
1
1
  import { Tree } from '@nx/devkit';
2
2
  import { CustomServerSchema } from './schema';
3
3
  export declare function customServerGenerator(host: Tree, options: CustomServerSchema): Promise<() => void>;
4
- //# sourceMappingURL=custom-server.d.ts.map
@@ -7,7 +7,9 @@ const devkit_2 = require("@nx/devkit");
7
7
  const path_1 = require("path");
8
8
  const add_swc_to_custom_server_1 = require("../../utils/add-swc-to-custom-server");
9
9
  const internal_2 = require("@nx/js/internal");
10
+ const assert_supported_next_version_1 = require("../../utils/assert-supported-next-version");
10
11
  async function customServerGenerator(host, options) {
12
+ (0, assert_supported_next_version_1.assertSupportedNextVersion)(host);
11
13
  const project = (0, devkit_2.readProjectConfiguration)(host, options.project);
12
14
  const swcServerName = '.server.swcrc';
13
15
  const nxJson = (0, devkit_2.readNxJson)(host);
@@ -3,4 +3,3 @@ import { CypressComponentConfigurationGeneratorSchema } from './schema';
3
3
  export declare function cypressComponentConfiguration(tree: Tree, options: CypressComponentConfigurationGeneratorSchema): Promise<GeneratorCallback>;
4
4
  export declare function cypressComponentConfigurationInternal(tree: Tree, options: CypressComponentConfigurationGeneratorSchema): Promise<GeneratorCallback>;
5
5
  export default cypressComponentConfiguration;
6
- //# sourceMappingURL=cypress-component-configuration.d.ts.map
@@ -1,46 +1,14 @@
1
1
  "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || (function () {
19
- var ownKeys = function(o) {
20
- ownKeys = Object.getOwnPropertyNames || function (o) {
21
- var ar = [];
22
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
- return ar;
24
- };
25
- return ownKeys(o);
26
- };
27
- return function (mod) {
28
- if (mod && mod.__esModule) return mod;
29
- var result = {};
30
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
- __setModuleDefault(result, mod);
32
- return result;
33
- };
34
- })();
35
2
  Object.defineProperty(exports, "__esModule", { value: true });
36
3
  exports.cypressComponentConfiguration = cypressComponentConfiguration;
37
4
  exports.cypressComponentConfigurationInternal = cypressComponentConfigurationInternal;
38
5
  const devkit_1 = require("@nx/devkit");
39
6
  const internal_1 = require("@nx/js/internal");
40
7
  const react_1 = require("@nx/react");
41
- const ct_utils_1 = require("@nx/react/src/utils/ct-utils");
8
+ const internal_2 = require("@nx/react/internal");
42
9
  const path_1 = require("path");
43
10
  const versions_1 = require("../../utils/versions");
11
+ const assert_supported_next_version_1 = require("../../utils/assert-supported-next-version");
44
12
  function cypressComponentConfiguration(tree, options) {
45
13
  return cypressComponentConfigurationInternal(tree, {
46
14
  addPlugin: false,
@@ -48,6 +16,7 @@ function cypressComponentConfiguration(tree, options) {
48
16
  });
49
17
  }
50
18
  async function cypressComponentConfigurationInternal(tree, options) {
19
+ (0, assert_supported_next_version_1.assertSupportedNextVersion)(tree);
51
20
  const tasks = [];
52
21
  const { componentConfigurationGenerator: baseCyCtConfig } = (0, devkit_1.ensurePackage)('@nx/cypress', versions_1.nxVersion);
53
22
  tasks.push(await baseCyCtConfig(tree, {
@@ -62,7 +31,7 @@ async function cypressComponentConfigurationInternal(tree, options) {
62
31
  skipFormat: true,
63
32
  addPlugin: options.addPlugin,
64
33
  }));
65
- const { ensureDependencies } = await Promise.resolve().then(() => __importStar(require('@nx/webpack/src/utils/ensure-dependencies')));
34
+ const { ensureDependencies, } = require('@nx/webpack/internal');
66
35
  tasks.push(ensureDependencies(tree, { compiler: 'swc', uiFramework: 'react' }));
67
36
  const projectConfig = (0, devkit_1.readProjectConfiguration)(tree, options.project);
68
37
  if (projectConfig.targets?.['component-test']?.executor ===
@@ -80,8 +49,8 @@ async function cypressComponentConfigurationInternal(tree, options) {
80
49
  return (0, devkit_1.runTasksInSerial)(...tasks);
81
50
  }
82
51
  async function addFiles(tree, projectConfig, opts) {
83
- const { addMountDefinition, addDefaultCTConfig } = await Promise.resolve().then(() => __importStar(require('@nx/cypress/internal')));
84
- const { getInstalledCypressMajorVersion } = await Promise.resolve().then(() => __importStar(require('@nx/cypress/internal')));
52
+ const { addMountDefinition, addDefaultCTConfig } = await import('@nx/cypress/internal');
53
+ const { getInstalledCypressMajorVersion } = await import('@nx/cypress/internal');
85
54
  const installedCypressMajorVersion = getInstalledCypressMajorVersion(tree);
86
55
  const ctFile = (0, devkit_1.joinPathFragments)(projectConfig.root, 'cypress', 'support', 'component.ts');
87
56
  const updatedCommandFile = await addMountDefinition(tree.read(ctFile, 'utf-8'));
@@ -109,7 +78,7 @@ ${isUsingTailwind
109
78
  fromProjectRootPath.includes('app')) {
110
79
  return;
111
80
  }
112
- if ((0, ct_utils_1.isComponent)(tree, filePath)) {
81
+ if ((0, internal_2.isComponent)(tree, filePath)) {
113
82
  filePaths.push(filePath);
114
83
  }
115
84
  });
@@ -3,4 +3,3 @@ import type { InitSchema } from './schema';
3
3
  export declare function nextInitGenerator(tree: Tree, schema: InitSchema): Promise<GeneratorCallback>;
4
4
  export declare function nextInitGeneratorInternal(host: Tree, schema: InitSchema): Promise<GeneratorCallback>;
5
5
  export default nextInitGenerator;
6
- //# sourceMappingURL=init.d.ts.map