@nx/web 23.0.0-pr.35413.460eeef → 23.0.0-rc.0

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 (87) 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/dist/internal.d.ts +2 -0
  5. package/dist/internal.js +11 -0
  6. package/{src → dist/src}/executors/file-server/compat.d.ts +0 -1
  7. package/{src → dist/src}/executors/file-server/file-server.impl.d.ts +0 -1
  8. package/{src → dist/src}/executors/file-server/file-server.impl.js +7 -4
  9. package/{src → dist/src}/generators/application/application.d.ts +0 -1
  10. package/{src → dist/src}/generators/application/application.js +29 -29
  11. package/{src → dist/src}/generators/application/schema.json +2 -5
  12. package/{src → dist/src}/generators/init/init.d.ts +0 -1
  13. package/{src → dist/src}/generators/static-serve/static-serve-configuration.d.ts +0 -1
  14. package/dist/src/migrations/update-23-0-0/rewrite-internal-subpath-imports.d.ts +3 -0
  15. package/dist/src/migrations/update-23-0-0/rewrite-internal-subpath-imports.js +197 -0
  16. package/dist/src/plugins/webpack-nx-build-coordination-plugin.d.ts +1 -0
  17. package/dist/src/plugins/webpack-nx-build-coordination-plugin.js +5 -0
  18. package/dist/src/utils/fs.d.ts +1 -0
  19. package/dist/src/utils/fs.js +7 -0
  20. package/{src → dist/src}/utils/has-vite-plugin.d.ts +0 -1
  21. package/{src → dist/src}/utils/has-webpack-plugin.d.ts +0 -1
  22. package/dist/src/utils/normalize.d.ts +1 -0
  23. package/dist/src/utils/normalize.js +6 -0
  24. package/{src → dist/src}/utils/versions.d.ts +1 -2
  25. package/{src → dist/src}/utils/versions.js +3 -2
  26. package/{src → dist/src}/utils/wait-for-port-open.d.ts +0 -1
  27. package/executors.json +4 -4
  28. package/generators.json +6 -6
  29. package/migrations.json +7 -1
  30. package/package.json +55 -16
  31. package/babel.d.ts +0 -2
  32. package/babel.d.ts.map +0 -1
  33. package/index.d.ts.map +0 -1
  34. package/src/executors/file-server/compat.d.ts.map +0 -1
  35. package/src/executors/file-server/file-server.impl.d.ts.map +0 -1
  36. package/src/generators/application/application.d.ts.map +0 -1
  37. package/src/generators/init/init.d.ts.map +0 -1
  38. package/src/generators/static-serve/static-serve-configuration.d.ts.map +0 -1
  39. package/src/plugins/webpack-nx-build-coordination-plugin.d.ts +0 -2
  40. package/src/plugins/webpack-nx-build-coordination-plugin.d.ts.map +0 -1
  41. package/src/plugins/webpack-nx-build-coordination-plugin.js +0 -5
  42. package/src/utils/fs.d.ts +0 -2
  43. package/src/utils/fs.d.ts.map +0 -1
  44. package/src/utils/fs.js +0 -4
  45. package/src/utils/has-vite-plugin.d.ts.map +0 -1
  46. package/src/utils/has-webpack-plugin.d.ts.map +0 -1
  47. package/src/utils/normalize.d.ts +0 -2
  48. package/src/utils/normalize.d.ts.map +0 -1
  49. package/src/utils/normalize.js +0 -4
  50. package/src/utils/versions.d.ts.map +0 -1
  51. package/src/utils/wait-for-port-open.d.ts.map +0 -1
  52. /package/{LICENSE → dist/LICENSE} +0 -0
  53. /package/{index.js → dist/index.js} +0 -0
  54. /package/{src → dist/src}/executors/file-server/compat.js +0 -0
  55. /package/{src → dist/src}/executors/file-server/schema.d.ts +0 -0
  56. /package/{src → dist/src}/executors/file-server/schema.json +0 -0
  57. /package/{src → dist/src}/generators/application/files/app-vite/.babelrc__tmpl__ +0 -0
  58. /package/{src → dist/src}/generators/application/files/app-vite/index.html__tmpl__ +0 -0
  59. /package/{src → dist/src}/generators/application/files/app-vite/public/favicon.ico +0 -0
  60. /package/{src → dist/src}/generators/application/files/app-vite/src/app/app.element.__style__ +0 -0
  61. /package/{src → dist/src}/generators/application/files/app-vite/src/app/app.element.spec.ts__tmpl__ +0 -0
  62. /package/{src → dist/src}/generators/application/files/app-vite/src/app/app.element.ts__tmpl__ +0 -0
  63. /package/{src → dist/src}/generators/application/files/app-vite/src/assets/.gitkeep +0 -0
  64. /package/{src → dist/src}/generators/application/files/app-vite/src/main.ts__tmpl__ +0 -0
  65. /package/{src → dist/src}/generators/application/files/app-vite/src/styles.__style__ +0 -0
  66. /package/{src → dist/src}/generators/application/files/app-vite/tsconfig.app.json +0 -0
  67. /package/{src → dist/src}/generators/application/files/app-vite/tsconfig.json__tmpl__ +0 -0
  68. /package/{src → dist/src}/generators/application/files/app-webpack/src/app/app.element.__style__ +0 -0
  69. /package/{src → dist/src}/generators/application/files/app-webpack/src/app/app.element.spec.ts__tmpl__ +0 -0
  70. /package/{src → dist/src}/generators/application/files/app-webpack/src/app/app.element.ts__tmpl__ +0 -0
  71. /package/{src → dist/src}/generators/application/files/app-webpack/src/assets/.gitkeep +0 -0
  72. /package/{src → dist/src}/generators/application/files/app-webpack/src/favicon.ico +0 -0
  73. /package/{src → dist/src}/generators/application/files/app-webpack/src/index.html +0 -0
  74. /package/{src → dist/src}/generators/application/files/app-webpack/src/main.ts__tmpl__ +0 -0
  75. /package/{src → dist/src}/generators/application/files/app-webpack/src/styles.__style__ +0 -0
  76. /package/{src → dist/src}/generators/application/files/app-webpack/tsconfig.app.json +0 -0
  77. /package/{src → dist/src}/generators/application/files/app-webpack/tsconfig.json +0 -0
  78. /package/{src → dist/src}/generators/application/files/app-webpack/webpack.config.js__tmpl__ +0 -0
  79. /package/{src → dist/src}/generators/application/schema.d.ts +0 -0
  80. /package/{src → dist/src}/generators/init/init.js +0 -0
  81. /package/{src → dist/src}/generators/init/schema.d.ts +0 -0
  82. /package/{src → dist/src}/generators/init/schema.json +0 -0
  83. /package/{src → dist/src}/generators/static-serve/schema.json +0 -0
  84. /package/{src → dist/src}/generators/static-serve/static-serve-configuration.js +0 -0
  85. /package/{src → dist/src}/utils/has-vite-plugin.js +0 -0
  86. /package/{src → dist/src}/utils/has-webpack-plugin.js +0 -0
  87. /package/{src → dist/src}/utils/wait-for-port-open.js +0 -0
@@ -0,0 +1 @@
1
+ export {};
@@ -1,3 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
1
3
  const nxJsBabelPreset = require('@nx/js/babel');
2
4
  /** @deprecated Use `@nx/js/babel`. */
3
5
  module.exports = function (api, options = {}) {
@@ -1,4 +1,3 @@
1
1
  export { webInitGenerator } from './src/generators/init/init';
2
2
  export { applicationGenerator } from './src/generators/application/application';
3
3
  export { webStaticServeGenerator } from './src/generators/static-serve/static-serve-configuration';
4
- //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,2 @@
1
+ export { waitForPortOpen } from './src/utils/wait-for-port-open';
2
+ export { default as fileServerExecutor } from './src/executors/file-server/file-server.impl';
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.fileServerExecutor = exports.waitForPortOpen = void 0;
4
+ const tslib_1 = require("tslib");
5
+ // Curated internal API surface for other first-party Nx plugins (e.g. @nx/react,
6
+ // @nx/angular, @nx/rspack, @nx/next, @nx/remix, @nx/module-federation). Prefer
7
+ // this over deep `@nx/web/src/*` imports — those are not part of the public API.
8
+ var wait_for_port_open_1 = require("./src/utils/wait-for-port-open");
9
+ Object.defineProperty(exports, "waitForPortOpen", { enumerable: true, get: function () { return wait_for_port_open_1.waitForPortOpen; } });
10
+ var file_server_impl_1 = require("./src/executors/file-server/file-server.impl");
11
+ Object.defineProperty(exports, "fileServerExecutor", { enumerable: true, get: function () { return tslib_1.__importDefault(file_server_impl_1).default; } });
@@ -1,3 +1,2 @@
1
1
  declare const _default: any;
2
2
  export default _default;
3
- //# sourceMappingURL=compat.d.ts.map
@@ -6,4 +6,3 @@ export default function fileServerExecutor(options: Schema, context: ExecutorCon
6
6
  }, {
7
7
  success: boolean;
8
8
  }, unknown>;
9
- //# sourceMappingURL=file-server.impl.d.ts.map
@@ -12,7 +12,8 @@ const path_1 = require("path");
12
12
  const package_json_1 = require("nx/src/utils/package-json");
13
13
  const client_1 = require("nx/src/daemon/client/client");
14
14
  const utils_1 = require("nx/src/tasks-runner/utils");
15
- const detectPort = require('detect-port');
15
+ const internal_2 = require("@nx/js/internal");
16
+ const detect_port_1 = tslib_1.__importDefault(require("detect-port"));
16
17
  // platform specific command name
17
18
  const pmCmd = (0, os_1.platform)() === 'win32' ? `npx.cmd` : 'npx';
18
19
  function getHttpServerArgs(options) {
@@ -80,11 +81,13 @@ function getBuildTargetOutputPath(options, context) {
80
81
  const project = context.projectGraph.nodes[context.projectName];
81
82
  const buildTarget = project.data.targets[target.target];
82
83
  outputPath = buildTarget.outputs?.[0];
83
- if (outputPath)
84
+ if (outputPath) {
84
85
  outputPath = (0, utils_1.interpolate)(outputPath, {
85
86
  projectName: project.data.name,
86
87
  projectRoot: project.data.root,
87
88
  });
89
+ outputPath = (0, internal_2.stripGlobToBaseDir)(outputPath);
90
+ }
88
91
  }
89
92
  }
90
93
  catch (e) {
@@ -99,7 +102,7 @@ function createFileWatcher(project, changeHandler) {
99
102
  return client_1.daemonClient.registerFileWatcher({
100
103
  watchProjects: project ? [project] : 'all',
101
104
  includeGlobalWorkspaceFiles: true,
102
- includeDependentProjects: true,
105
+ includeDependencies: true,
103
106
  }, async (error, val) => {
104
107
  if (error === 'reconnecting') {
105
108
  // Silent - daemon restarts automatically on lockfile changes
@@ -167,7 +170,7 @@ async function* fileServerExecutor(options, context) {
167
170
  // perform initial run
168
171
  run();
169
172
  }
170
- const port = await detectPort(options.port || 8080);
173
+ const port = await (0, detect_port_1.default)(options.port || 8080);
171
174
  const outputPath = getBuildTargetOutputPath(options, context);
172
175
  if (options.spa) {
173
176
  const src = (0, path_1.join)(outputPath, 'index.html');
@@ -3,4 +3,3 @@ 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
5
  export default applicationGenerator;
6
- //# sourceMappingURL=application.d.ts.map
@@ -3,19 +3,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.applicationGenerator = applicationGenerator;
4
4
  exports.applicationGeneratorInternal = applicationGeneratorInternal;
5
5
  const tslib_1 = require("tslib");
6
+ const internal_1 = require("@nx/devkit/internal");
6
7
  const devkit_1 = require("@nx/devkit");
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
- const versions_1 = require("@nx/js/src/utils/versions");
9
+ const internal_2 = require("@nx/js/internal");
10
10
  const path_1 = require("path");
11
- const versions_2 = require("../../utils/versions");
11
+ const versions_1 = require("../../utils/versions");
12
12
  const init_1 = require("../init/init");
13
- const get_npm_scope_1 = require("@nx/js/src/utils/package-json/get-npm-scope");
14
13
  const has_webpack_plugin_1 = require("../../utils/has-webpack-plugin");
15
- const target_defaults_utils_1 = require("@nx/devkit/src/generators/target-defaults-utils");
16
- const log_show_project_command_1 = require("@nx/devkit/src/utils/log-show-project-command");
17
14
  const static_serve_configuration_1 = tslib_1.__importDefault(require("../static-serve/static-serve-configuration"));
18
- const ts_solution_setup_1 = require("@nx/js/src/utils/typescript/ts-solution-setup");
19
15
  function createApplicationFiles(tree, options) {
20
16
  const rootTsConfigPath = (0, js_1.getRelativePathToRootTsConfig)(tree, options.appProjectRoot);
21
17
  if (options.bundler === 'vite') {
@@ -87,7 +83,7 @@ async function setupBundler(tree, options) {
87
83
  (0, devkit_1.joinPathFragments)(options.appProjectRoot, 'src/assets'),
88
84
  ];
89
85
  if (options.bundler === 'webpack') {
90
- const { configurationGenerator } = (0, devkit_1.ensurePackage)('@nx/webpack', versions_2.nxVersion);
86
+ const { configurationGenerator } = (0, devkit_1.ensurePackage)('@nx/webpack', versions_1.nxVersion);
91
87
  await configurationGenerator(tree, {
92
88
  target: 'web',
93
89
  project: options.projectName,
@@ -132,7 +128,7 @@ async function setupBundler(tree, options) {
132
128
  }
133
129
  else if (options.bundler === 'none') {
134
130
  const project = (0, devkit_1.readProjectConfiguration)(tree, options.projectName);
135
- (0, target_defaults_utils_1.addBuildTargetDefaults)(tree, `@nx/js:${options.compiler}`);
131
+ (0, internal_1.addBuildTargetDefaults)(tree, `@nx/js:${options.compiler}`);
136
132
  project.targets ??= {};
137
133
  project.targets.build = {
138
134
  executor: `@nx/js:${options.compiler}`,
@@ -198,7 +194,7 @@ async function applicationGenerator(host, schema) {
198
194
  async function applicationGeneratorInternal(host, schema) {
199
195
  const options = await normalizeOptions(host, schema);
200
196
  if (options.isUsingTsSolutionConfig) {
201
- await (0, ts_solution_setup_1.addProjectToTsSolutionWorkspace)(host, options.appProjectRoot);
197
+ await (0, internal_2.addProjectToTsSolutionWorkspace)(host, options.appProjectRoot);
202
198
  }
203
199
  const tasks = [];
204
200
  const jsInitTask = await (0, js_1.initGenerator)(host, {
@@ -218,7 +214,7 @@ async function applicationGeneratorInternal(host, schema) {
218
214
  }
219
215
  createApplicationFiles(host, options);
220
216
  if (options.linter === 'eslint') {
221
- const { lintProjectGenerator } = (0, devkit_1.ensurePackage)('@nx/eslint', versions_2.nxVersion);
217
+ const { lintProjectGenerator } = (0, devkit_1.ensurePackage)('@nx/eslint', versions_1.nxVersion);
222
218
  const lintTask = await lintProjectGenerator(host, {
223
219
  linter: options.linter,
224
220
  project: options.projectName,
@@ -233,12 +229,14 @@ async function applicationGeneratorInternal(host, schema) {
233
229
  tasks.push(lintTask);
234
230
  // Add out-tsc ignore pattern when using TS solution setup
235
231
  if (options.isUsingTsSolutionConfig) {
236
- const { addIgnoresToLintConfig } = await Promise.resolve().then(() => tslib_1.__importStar(require('@nx/eslint/src/generators/utils/eslint-file')));
232
+ // CommonJS `require` instead of dynamic ESM `import` — `ensurePackage`
233
+ // exposes the temp install via `Module._initPaths`, which ESM ignores.
234
+ const { addIgnoresToLintConfig, } = require('@nx/eslint/internal');
237
235
  addIgnoresToLintConfig(host, options.appProjectRoot, ['**/out-tsc']);
238
236
  }
239
237
  }
240
238
  if (options.bundler === 'vite') {
241
- const { viteConfigurationGenerator, createOrEditViteConfig } = (0, devkit_1.ensurePackage)('@nx/vite', versions_2.nxVersion);
239
+ const { viteConfigurationGenerator, createOrEditViteConfig } = (0, devkit_1.ensurePackage)('@nx/vite', versions_1.nxVersion);
242
240
  // We recommend users use `import.meta.env.MODE` and other variables in their code to differentiate between production and development.
243
241
  // See: https://vite.dev/guide/env-and-mode.html
244
242
  if (host.exists((0, devkit_1.joinPathFragments)(options.appProjectRoot, 'src/environments'))) {
@@ -263,9 +261,11 @@ async function applicationGeneratorInternal(host, schema) {
263
261
  }, false);
264
262
  }
265
263
  if (options.bundler !== 'vite' && options.unitTestRunner === 'vitest') {
266
- const { createOrEditViteConfig } = (0, devkit_1.ensurePackage)('@nx/vite', versions_2.nxVersion);
267
- (0, devkit_1.ensurePackage)('@nx/vitest', versions_2.nxVersion);
268
- const { configurationGenerator } = await Promise.resolve().then(() => tslib_1.__importStar(require('@nx/vitest/generators')));
264
+ const { createOrEditViteConfig } = (0, devkit_1.ensurePackage)('@nx/vite', versions_1.nxVersion);
265
+ (0, devkit_1.ensurePackage)('@nx/vitest', versions_1.nxVersion);
266
+ // CommonJS `require` instead of dynamic ESM `import` — `ensurePackage`
267
+ // exposes the temp install via `Module._initPaths`, which ESM ignores.
268
+ const { configurationGenerator, } = require('@nx/vitest/generators');
269
269
  const vitestTask = await configurationGenerator(host, {
270
270
  uiFramework: 'none',
271
271
  project: options.projectName,
@@ -312,15 +312,15 @@ async function applicationGeneratorInternal(host, schema) {
312
312
  e2eDevServerTarget: `${options.projectName}:serve`,
313
313
  };
314
314
  if (options.bundler === 'webpack') {
315
- const { getWebpackE2EWebServerInfo } = (0, devkit_1.ensurePackage)('@nx/webpack', versions_2.nxVersion);
315
+ const { getWebpackE2EWebServerInfo } = (0, devkit_1.ensurePackage)('@nx/webpack', versions_1.nxVersion);
316
316
  e2eWebServerInfo = await getWebpackE2EWebServerInfo(host, options.projectName, (0, devkit_1.joinPathFragments)(options.appProjectRoot, `webpack.config.js`), options.addPlugin, 4200);
317
317
  }
318
318
  else if (options.bundler === 'vite') {
319
- const { getViteE2EWebServerInfo } = (0, devkit_1.ensurePackage)('@nx/vite', versions_2.nxVersion);
319
+ const { getViteE2EWebServerInfo } = (0, devkit_1.ensurePackage)('@nx/vite', versions_1.nxVersion);
320
320
  e2eWebServerInfo = await getViteE2EWebServerInfo(host, options.projectName, (0, devkit_1.joinPathFragments)(options.appProjectRoot, `vite.config.ts`), options.addPlugin, 4200);
321
321
  }
322
322
  if (options.e2eTestRunner === 'cypress') {
323
- const { configurationGenerator } = (0, devkit_1.ensurePackage)('@nx/cypress', versions_2.nxVersion);
323
+ const { configurationGenerator } = (0, devkit_1.ensurePackage)('@nx/cypress', versions_1.nxVersion);
324
324
  const packageJson = {
325
325
  name: options.e2eProjectName,
326
326
  version: '0.0.1',
@@ -361,7 +361,7 @@ async function applicationGeneratorInternal(host, schema) {
361
361
  tasks.push(cypressTask);
362
362
  }
363
363
  else if (options.e2eTestRunner === 'playwright') {
364
- const { configurationGenerator: playwrightConfigGenerator } = (0, devkit_1.ensurePackage)('@nx/playwright', versions_2.nxVersion);
364
+ const { configurationGenerator: playwrightConfigGenerator } = (0, devkit_1.ensurePackage)('@nx/playwright', versions_1.nxVersion);
365
365
  const packageJson = {
366
366
  name: options.e2eProjectName,
367
367
  version: '0.0.1',
@@ -400,7 +400,7 @@ async function applicationGeneratorInternal(host, schema) {
400
400
  tasks.push(playwrightTask);
401
401
  }
402
402
  if (options.unitTestRunner === 'jest') {
403
- const { configurationGenerator } = (0, devkit_1.ensurePackage)('@nx/jest', versions_2.nxVersion);
403
+ const { configurationGenerator } = (0, devkit_1.ensurePackage)('@nx/jest', versions_1.nxVersion);
404
404
  const jestTask = await configurationGenerator(host, {
405
405
  project: options.projectName,
406
406
  skipSerializers: true,
@@ -420,7 +420,7 @@ async function applicationGeneratorInternal(host, schema) {
420
420
  target: 'es2016',
421
421
  },
422
422
  });
423
- const installTask = (0, devkit_1.addDependenciesToPackageJson)(host, {}, { '@swc/core': versions_1.swcCoreVersion, 'swc-loader': versions_2.swcLoaderVersion });
423
+ const installTask = (0, devkit_1.addDependenciesToPackageJson)(host, {}, { '@swc/core': internal_2.swcCoreVersion, 'swc-loader': versions_1.swcLoaderVersion });
424
424
  tasks.push(installTask);
425
425
  }
426
426
  else {
@@ -429,8 +429,8 @@ async function applicationGeneratorInternal(host, schema) {
429
429
  });
430
430
  }
431
431
  setDefaults(host, options);
432
- tasks.push((0, devkit_1.addDependenciesToPackageJson)(host, { tslib: versions_2.tsLibVersion }, { '@types/node': versions_2.typesNodeVersion }));
433
- (0, ts_solution_setup_1.updateTsconfigFiles)(host, options.appProjectRoot, 'tsconfig.app.json', {
432
+ tasks.push((0, devkit_1.addDependenciesToPackageJson)(host, { tslib: versions_1.tsLibVersion }, { '@types/node': versions_1.typesNodeVersion }));
433
+ (0, internal_2.updateTsconfigFiles)(host, options.appProjectRoot, 'tsconfig.app.json', {
434
434
  module: 'esnext',
435
435
  moduleResolution: 'bundler',
436
436
  }, options.linter === 'eslint'
@@ -440,13 +440,13 @@ async function applicationGeneratorInternal(host, schema) {
440
440
  await (0, devkit_1.formatFiles)(host);
441
441
  }
442
442
  tasks.push(() => {
443
- (0, log_show_project_command_1.logShowProjectCommand)(options.projectName);
443
+ (0, internal_1.logShowProjectCommand)(options.projectName);
444
444
  });
445
445
  return (0, devkit_1.runTasksInSerial)(...tasks);
446
446
  }
447
447
  async function normalizeOptions(host, options) {
448
- await (0, project_name_and_root_utils_1.ensureRootProjectName)(options, 'application');
449
- const { projectName, projectRoot: appProjectRoot, importPath, } = await (0, project_name_and_root_utils_1.determineProjectNameAndRootOptions)(host, {
448
+ await (0, internal_1.ensureRootProjectName)(options, 'application');
449
+ const { projectName, projectRoot: appProjectRoot, importPath, } = await (0, internal_1.determineProjectNameAndRootOptions)(host, {
450
450
  name: options.name,
451
451
  projectType: 'application',
452
452
  directory: options.directory,
@@ -455,11 +455,11 @@ async function normalizeOptions(host, options) {
455
455
  const addPluginDefault = process.env.NX_ADD_PLUGINS !== 'false' &&
456
456
  nxJson.useInferencePlugins !== false;
457
457
  options.addPlugin ??= addPluginDefault;
458
- const isUsingTsSolutionConfig = (0, ts_solution_setup_1.isUsingTsSolutionSetup)(host);
458
+ const isUsingTsSolutionConfig = (0, internal_2.isUsingTsSolutionSetup)(host);
459
459
  const appProjectName = !isUsingTsSolutionConfig || options.name ? projectName : importPath;
460
460
  const e2eProjectName = `${appProjectName}-e2e`;
461
461
  const e2eProjectRoot = `${appProjectRoot}-e2e`;
462
- const npmScope = (0, get_npm_scope_1.getNpmScope)(host);
462
+ const npmScope = (0, internal_2.getNpmScope)(host);
463
463
  const parsedTags = options.tags
464
464
  ? options.tags.split(',').map((s) => s.trim())
465
465
  : [];
@@ -25,6 +25,7 @@
25
25
  "description": "The file extension to be used for style files.",
26
26
  "type": "string",
27
27
  "default": "css",
28
+ "enum": ["css", "scss"],
28
29
  "x-prompt": {
29
30
  "message": "Which stylesheet format would you like to use?",
30
31
  "type": "list",
@@ -35,11 +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 ]"
39
+ "label": "SASS(.scss) [ https://sass-lang.com ]"
43
40
  }
44
41
  ]
45
42
  }
@@ -2,4 +2,3 @@ import { GeneratorCallback, Tree } from '@nx/devkit';
2
2
  import { Schema } from './schema';
3
3
  export declare function webInitGenerator(tree: Tree, schema: Schema): Promise<GeneratorCallback>;
4
4
  export default webInitGenerator;
5
- //# sourceMappingURL=init.d.ts.map
@@ -7,4 +7,3 @@ interface WebStaticServeSchema {
7
7
  }
8
8
  export declare function webStaticServeGenerator(tree: Tree, options: WebStaticServeSchema): Promise<void>;
9
9
  export default webStaticServeGenerator;
10
- //# sourceMappingURL=static-serve-configuration.d.ts.map
@@ -0,0 +1,3 @@
1
+ import { type Tree } from '@nx/devkit';
2
+ export default function rewriteInternalSubpathImports(tree: Tree): Promise<void>;
3
+ export declare function rewriteSubpathImports(source: string): string;
@@ -0,0 +1,197 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.default = rewriteInternalSubpathImports;
4
+ exports.rewriteSubpathImports = rewriteSubpathImports;
5
+ const devkit_1 = require("@nx/devkit");
6
+ const TS_EXTENSIONS = ['.ts', '.tsx', '.cts', '.mts'];
7
+ const FROM_PREFIX = '@nx/web/src/';
8
+ const TO_PUBLIC = '@nx/web';
9
+ const TO_INTERNAL = '@nx/web/internal';
10
+ // Symbols exported from `@nx/web`'s public entry (packages/web/index.ts).
11
+ // A named import/export of one of these from `@nx/web/src/*` is routed to
12
+ // the public `@nx/web` entry; everything else goes to `@nx/web/internal`.
13
+ const PUBLIC_SYMBOLS = new Set([
14
+ 'applicationGenerator',
15
+ 'webInitGenerator',
16
+ 'webStaticServeGenerator',
17
+ ]);
18
+ // Methods on `jest` and `vi` that take a module specifier as their first arg.
19
+ const MOCK_HELPER_METHODS = new Set([
20
+ 'mock',
21
+ 'unmock',
22
+ 'doMock',
23
+ 'dontMock',
24
+ 'requireActual',
25
+ 'requireMock',
26
+ 'importActual',
27
+ 'importMock',
28
+ ]);
29
+ let ts;
30
+ async function rewriteInternalSubpathImports(tree) {
31
+ let touchedCount = 0;
32
+ (0, devkit_1.visitNotIgnoredFiles)(tree, '.', (filePath) => {
33
+ if (!TS_EXTENSIONS.some((ext) => filePath.endsWith(ext))) {
34
+ return;
35
+ }
36
+ const original = tree.read(filePath, 'utf-8');
37
+ if (!original || !original.includes(FROM_PREFIX)) {
38
+ return;
39
+ }
40
+ const updated = rewriteSubpathImports(original);
41
+ if (updated !== original) {
42
+ tree.write(filePath, updated);
43
+ touchedCount += 1;
44
+ }
45
+ });
46
+ if (touchedCount > 0) {
47
+ devkit_1.logger.info(`Rewrote @nx/web/src/* imports in ${touchedCount} file(s) ` +
48
+ `(public symbols to @nx/web, internals to @nx/web/internal).`);
49
+ }
50
+ await (0, devkit_1.formatFiles)(tree);
51
+ }
52
+ function rewriteSubpathImports(source) {
53
+ ts ??= (0, devkit_1.ensurePackage)('typescript', '*');
54
+ const sourceFile = ts.createSourceFile('tmp.ts', source, ts.ScriptTarget.Latest,
55
+ /* setParentNodes */ true, ts.ScriptKind.TSX);
56
+ const changes = [];
57
+ for (const stmt of sourceFile.statements) {
58
+ if (ts.isImportDeclaration(stmt)) {
59
+ collectImportRewrite(sourceFile, stmt, changes);
60
+ }
61
+ else if (ts.isExportDeclaration(stmt)) {
62
+ collectExportRewrite(sourceFile, stmt, changes);
63
+ }
64
+ }
65
+ collectCallExpressionRewrites(sourceFile, changes);
66
+ return changes.length > 0 ? (0, devkit_1.applyChangesToString)(source, changes) : source;
67
+ }
68
+ function isSubpathSpecifier(node) {
69
+ return ts.isStringLiteral(node) && node.text.startsWith(FROM_PREFIX);
70
+ }
71
+ function collectImportRewrite(sourceFile, stmt, changes) {
72
+ if (!isSubpathSpecifier(stmt.moduleSpecifier)) {
73
+ return;
74
+ }
75
+ const clause = stmt.importClause;
76
+ // Pure named imports (`import { a, b } from '...'`) can be split by symbol.
77
+ // A default or namespace import grabs the whole module, so it can't be
78
+ // split — route it wholesale to the internal entry.
79
+ if (clause &&
80
+ !clause.name &&
81
+ clause.namedBindings &&
82
+ ts.isNamedImports(clause.namedBindings)) {
83
+ rewriteNamedDeclaration(sourceFile, stmt, stmt.moduleSpecifier, clause.isTypeOnly, clause.namedBindings.elements, 'import', changes);
84
+ return;
85
+ }
86
+ replaceSpecifier(sourceFile, stmt.moduleSpecifier, TO_INTERNAL, changes);
87
+ }
88
+ function collectExportRewrite(sourceFile, stmt, changes) {
89
+ if (!stmt.moduleSpecifier || !isSubpathSpecifier(stmt.moduleSpecifier)) {
90
+ return;
91
+ }
92
+ // `export { a, b } from '...'` can be split; `export * from '...'` cannot.
93
+ if (stmt.exportClause && ts.isNamedExports(stmt.exportClause)) {
94
+ rewriteNamedDeclaration(sourceFile, stmt, stmt.moduleSpecifier, stmt.isTypeOnly, stmt.exportClause.elements, 'export', changes);
95
+ return;
96
+ }
97
+ replaceSpecifier(sourceFile, stmt.moduleSpecifier, TO_INTERNAL, changes);
98
+ }
99
+ /**
100
+ * Partition the named bindings of an import/export declaration into the ones
101
+ * that resolve to `@nx/web`'s public entry and the ones that don't. If both
102
+ * groups are non-empty, the single declaration is split into two.
103
+ */
104
+ function rewriteNamedDeclaration(sourceFile, decl, specifier, isTypeOnly, elements, keyword, changes) {
105
+ const publicEls = [];
106
+ const internalEls = [];
107
+ for (const el of elements) {
108
+ // `propertyName` is the original name in `orig as alias`; fall back to
109
+ // `name` for the plain `orig` form.
110
+ const importedName = (el.propertyName ?? el.name).text;
111
+ (PUBLIC_SYMBOLS.has(importedName) ? publicEls : internalEls).push(el);
112
+ }
113
+ if (publicEls.length === 0) {
114
+ replaceSpecifier(sourceFile, specifier, TO_INTERNAL, changes);
115
+ return;
116
+ }
117
+ if (internalEls.length === 0) {
118
+ replaceSpecifier(sourceFile, specifier, TO_PUBLIC, changes);
119
+ return;
120
+ }
121
+ // Mixed — replace the whole declaration with one statement per target.
122
+ const quote = sourceFile.text.charAt(specifier.getStart(sourceFile));
123
+ const start = decl.getStart(sourceFile);
124
+ const end = decl.getEnd();
125
+ const semicolon = sourceFile.text.charAt(end - 1) === ';' ? ';' : '';
126
+ const prefix = isTypeOnly ? `${keyword} type` : keyword;
127
+ const render = (els, target) => `${prefix} { ${els
128
+ .map((el) => el.getText(sourceFile))
129
+ .join(', ')} } from ${quote}${target}${quote}${semicolon}`;
130
+ changes.push({ type: devkit_1.ChangeType.Delete, start, length: end - start }, {
131
+ type: devkit_1.ChangeType.Insert,
132
+ index: start,
133
+ text: `${render(publicEls, TO_PUBLIC)}\n${render(internalEls, TO_INTERNAL)}`,
134
+ });
135
+ }
136
+ function collectCallExpressionRewrites(sourceFile, changes) {
137
+ const visit = (node) => {
138
+ if (ts.isCallExpression(node) &&
139
+ shouldRewriteCallExpression(node) &&
140
+ node.arguments.length >= 1 &&
141
+ isSubpathSpecifier(node.arguments[0])) {
142
+ // `require(...)`, dynamic `import(...)` and `jest.mock(...)` reference
143
+ // the module as a whole and can't be symbol-split, so they go to the
144
+ // internal entry.
145
+ replaceSpecifier(sourceFile, node.arguments[0], TO_INTERNAL, changes);
146
+ }
147
+ else if (ts.isImportTypeNode(node)) {
148
+ // `typeof import('...')` parses as an `ImportTypeNode`, not a
149
+ // CallExpression — its argument is `LiteralTypeNode<StringLiteral>`.
150
+ // The whole module is referenced, so it can't be symbol-split.
151
+ const literal = getImportTypeStringLiteral(node);
152
+ if (literal && literal.text.startsWith(FROM_PREFIX)) {
153
+ replaceSpecifier(sourceFile, literal, TO_INTERNAL, changes);
154
+ }
155
+ }
156
+ ts.forEachChild(node, visit);
157
+ };
158
+ visit(sourceFile);
159
+ }
160
+ function getImportTypeStringLiteral(node) {
161
+ const arg = node.argument;
162
+ if (arg && ts.isLiteralTypeNode(arg) && ts.isStringLiteral(arg.literal)) {
163
+ return arg.literal;
164
+ }
165
+ return undefined;
166
+ }
167
+ function shouldRewriteCallExpression(call) {
168
+ const callee = call.expression;
169
+ // `require('...')`
170
+ if (ts.isIdentifier(callee) && callee.text === 'require')
171
+ return true;
172
+ // dynamic `import('...')` (runtime form parses as a CallExpression whose
173
+ // callee is the `import` keyword). The `typeof import('...')` type-position
174
+ // form is an `ImportTypeNode` (handled in `collectCallExpressionRewrites`).
175
+ if (callee.kind === ts.SyntaxKind.ImportKeyword)
176
+ return true;
177
+ // `jest.mock(...)` / `vi.mock(...)` and friends.
178
+ if (ts.isPropertyAccessExpression(callee)) {
179
+ const obj = callee.expression;
180
+ if (ts.isIdentifier(obj) &&
181
+ (obj.text === 'jest' || obj.text === 'vi') &&
182
+ MOCK_HELPER_METHODS.has(callee.name.text)) {
183
+ return true;
184
+ }
185
+ }
186
+ return false;
187
+ }
188
+ function replaceSpecifier(sourceFile, literal, target, changes) {
189
+ const start = literal.getStart(sourceFile);
190
+ const end = literal.getEnd();
191
+ const quote = sourceFile.text.charAt(start);
192
+ changes.push({ type: devkit_1.ChangeType.Delete, start, length: end - start }, {
193
+ type: devkit_1.ChangeType.Insert,
194
+ index: start,
195
+ text: `${quote}${target}${quote}`,
196
+ });
197
+ }
@@ -0,0 +1 @@
1
+ export { WebpackNxBuildCoordinationPlugin } from '@nx/webpack/internal';
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.WebpackNxBuildCoordinationPlugin = void 0;
4
+ var internal_1 = require("@nx/webpack/internal");
5
+ Object.defineProperty(exports, "WebpackNxBuildCoordinationPlugin", { enumerable: true, get: function () { return internal_1.WebpackNxBuildCoordinationPlugin; } });
@@ -0,0 +1 @@
1
+ export { findUp, findAllNodeModules, deleteOutputDir, } from '@nx/webpack/internal';
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.deleteOutputDir = exports.findAllNodeModules = exports.findUp = void 0;
4
+ var internal_1 = require("@nx/webpack/internal");
5
+ Object.defineProperty(exports, "findUp", { enumerable: true, get: function () { return internal_1.findUp; } });
6
+ Object.defineProperty(exports, "findAllNodeModules", { enumerable: true, get: function () { return internal_1.findAllNodeModules; } });
7
+ Object.defineProperty(exports, "deleteOutputDir", { enumerable: true, get: function () { return internal_1.deleteOutputDir; } });
@@ -1,3 +1,2 @@
1
1
  import { Tree } from '@nx/devkit';
2
2
  export declare function hasVitePlugin(tree: Tree): boolean;
3
- //# sourceMappingURL=has-vite-plugin.d.ts.map
@@ -1,3 +1,2 @@
1
1
  import { Tree } from '@nx/devkit';
2
2
  export declare function hasWebpackPlugin(tree: Tree): boolean;
3
- //# sourceMappingURL=has-webpack-plugin.d.ts.map
@@ -0,0 +1 @@
1
+ export { normalizeOptions, normalizePluginPath } from '@nx/webpack';
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.normalizePluginPath = exports.normalizeOptions = void 0;
4
+ var webpack_1 = require("@nx/webpack");
5
+ Object.defineProperty(exports, "normalizeOptions", { enumerable: true, get: function () { return webpack_1.normalizeOptions; } });
6
+ Object.defineProperty(exports, "normalizePluginPath", { enumerable: true, get: function () { return webpack_1.normalizePluginPath; } });
@@ -1,5 +1,4 @@
1
1
  export declare const nxVersion: any;
2
2
  export declare const swcLoaderVersion = "0.1.15";
3
- export declare const typesNodeVersion = "20.19.9";
3
+ export declare const typesNodeVersion = "^22.0.0";
4
4
  export declare const tsLibVersion = "^2.3.0";
5
- //# sourceMappingURL=versions.d.ts.map
@@ -1,7 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.tsLibVersion = exports.typesNodeVersion = exports.swcLoaderVersion = exports.nxVersion = void 0;
4
- exports.nxVersion = require('../../package.json').version;
4
+ const path_1 = require("path");
5
+ exports.nxVersion = require((0, path_1.join)('@nx/web', 'package.json')).version;
5
6
  exports.swcLoaderVersion = '0.1.15';
6
- exports.typesNodeVersion = '20.19.9';
7
+ exports.typesNodeVersion = '^22.0.0';
7
8
  exports.tsLibVersion = '^2.3.0';
@@ -3,4 +3,3 @@ export declare function waitForPortOpen(port: number, options?: {
3
3
  retries?: number;
4
4
  retryDelay?: number;
5
5
  }): Promise<void>;
6
- //# sourceMappingURL=wait-for-port-open.d.ts.map
package/executors.json CHANGED
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "builders": {
3
3
  "file-server": {
4
- "implementation": "./src/executors/file-server/compat",
5
- "schema": "./src/executors/file-server/schema.json",
4
+ "implementation": "./dist/src/executors/file-server/compat",
5
+ "schema": "./dist/src/executors/file-server/schema.json",
6
6
  "description": "Serve a web application from a folder."
7
7
  }
8
8
  },
9
9
  "executors": {
10
10
  "file-server": {
11
- "implementation": "./src/executors/file-server/file-server.impl",
12
- "schema": "./src/executors/file-server/schema.json",
11
+ "implementation": "./dist/src/executors/file-server/file-server.impl",
12
+ "schema": "./dist/src/executors/file-server/schema.json",
13
13
  "description": "Serve a web application from a folder."
14
14
  }
15
15
  }
package/generators.json CHANGED
@@ -4,21 +4,21 @@
4
4
  "extends": ["@nx/workspace"],
5
5
  "generators": {
6
6
  "init": {
7
- "factory": "./src/generators/init/init#webInitGenerator",
8
- "schema": "./src/generators/init/schema.json",
7
+ "factory": "./dist/src/generators/init/init#webInitGenerator",
8
+ "schema": "./dist/src/generators/init/schema.json",
9
9
  "description": "Add `@nrwl/web` to a project.",
10
10
  "hidden": true
11
11
  },
12
12
  "application": {
13
- "factory": "./src/generators/application/application#applicationGeneratorInternal",
14
- "schema": "./src/generators/application/schema.json",
13
+ "factory": "./dist/src/generators/application/application#applicationGeneratorInternal",
14
+ "schema": "./dist/src/generators/application/schema.json",
15
15
  "aliases": ["app"],
16
16
  "x-type": "application",
17
17
  "description": "Create an web application."
18
18
  },
19
19
  "static-config": {
20
- "factory": "./src/generators/static-serve/static-serve-configuration",
21
- "schema": "./src/generators/static-serve/schema.json",
20
+ "factory": "./dist/src/generators/static-serve/static-serve-configuration",
21
+ "schema": "./dist/src/generators/static-serve/schema.json",
22
22
  "description": "Add a new static-serve target to a project."
23
23
  }
24
24
  }
package/migrations.json CHANGED
@@ -1,4 +1,10 @@
1
1
  {
2
- "generators": {},
2
+ "generators": {
3
+ "rewrite-web-internal-subpath-imports": {
4
+ "version": "23.0.0-beta.25",
5
+ "description": "Rewrites `@nx/web/src/*` subpath imports now that the `./src/*` subpath is no longer exposed by `@nx/web`'s exports map. Named imports/exports of public symbols are routed to `@nx/web` and the rest to the new `@nx/web/internal` entry; `require`, dynamic `import` and `jest.mock` calls reference the whole module and are routed to `@nx/web/internal`.",
6
+ "implementation": "./dist/src/migrations/update-23-0-0/rewrite-internal-subpath-imports"
7
+ }
8
+ },
3
9
  "packageJsonUpdates": {}
4
10
  }
package/package.json CHANGED
@@ -1,7 +1,15 @@
1
1
  {
2
2
  "name": "@nx/web",
3
- "version": "23.0.0-pr.35413.460eeef",
3
+ "version": "23.0.0-rc.0",
4
4
  "private": false,
5
+ "type": "commonjs",
6
+ "files": [
7
+ "dist",
8
+ "!dist/tsconfig.tsbuildinfo",
9
+ "migrations.json",
10
+ "executors.json",
11
+ "generators.json"
12
+ ],
5
13
  "description": "The Nx Plugin for Web Components contains generators for managing Web Component applications and libraries within an Nx workspace. It provides:\n\n\n- Integration with libraries such as Jest, Playwright, Cypress, and Storybook.\n\n- Scaffolding for creating buildable libraries that can be published to npm.\n\n- Utilities for automatic workspace refactoring.",
6
14
  "repository": {
7
15
  "type": "git",
@@ -16,9 +24,18 @@
16
24
  "CLI",
17
25
  "Front-end"
18
26
  ],
19
- "main": "./index.js",
20
- "type": "commonjs",
21
- "types": "./index.d.ts",
27
+ "main": "./dist/index.js",
28
+ "types": "./dist/index.d.ts",
29
+ "typesVersions": {
30
+ "*": {
31
+ "babel": [
32
+ "dist/babel.d.ts"
33
+ ],
34
+ "internal": [
35
+ "dist/internal.d.ts"
36
+ ]
37
+ }
38
+ },
22
39
  "author": "Victor Savkin",
23
40
  "license": "MIT",
24
41
  "bugs": {
@@ -29,27 +46,49 @@
29
46
  "executors": "./executors.json",
30
47
  "ng-update": {
31
48
  "requirements": {},
32
- "migrations": "./migrations.json"
49
+ "migrations": "./migrations.json",
50
+ "supportsOptionalMigrations": true
51
+ },
52
+ "exports": {
53
+ ".": {
54
+ "@nx/nx-source": "./index.ts",
55
+ "types": "./dist/index.d.ts",
56
+ "default": "./dist/index.js"
57
+ },
58
+ "./package.json": "./package.json",
59
+ "./migrations.json": "./migrations.json",
60
+ "./generators.json": "./generators.json",
61
+ "./executors.json": "./executors.json",
62
+ "./babel": {
63
+ "@nx/nx-source": "./babel.ts",
64
+ "types": "./dist/babel.d.ts",
65
+ "default": "./dist/babel.js"
66
+ },
67
+ "./internal": {
68
+ "@nx/nx-source": "./internal.ts",
69
+ "types": "./dist/internal.d.ts",
70
+ "default": "./dist/internal.js"
71
+ }
33
72
  },
34
73
  "dependencies": {
35
- "detect-port": "^1.5.1",
74
+ "detect-port": "^2.1.0",
36
75
  "http-server": "^14.1.0",
37
76
  "picocolors": "^1.1.0",
38
77
  "tslib": "^2.3.0",
39
- "@nx/devkit": "23.0.0-pr.35413.460eeef",
40
- "@nx/js": "23.0.0-pr.35413.460eeef"
78
+ "@nx/devkit": "23.0.0-rc.0",
79
+ "@nx/js": "23.0.0-rc.0"
41
80
  },
42
81
  "devDependencies": {
43
- "nx": "23.0.0-pr.35413.460eeef",
44
- "@nx/vitest": "23.0.0-pr.35413.460eeef"
82
+ "nx": "23.0.0-rc.0",
83
+ "@nx/vitest": "23.0.0-rc.0"
45
84
  },
46
85
  "peerDependencies": {
47
- "@nx/cypress": "23.0.0-pr.35413.460eeef",
48
- "@nx/eslint": "23.0.0-pr.35413.460eeef",
49
- "@nx/jest": "23.0.0-pr.35413.460eeef",
50
- "@nx/playwright": "23.0.0-pr.35413.460eeef",
51
- "@nx/vite": "23.0.0-pr.35413.460eeef",
52
- "@nx/webpack": "23.0.0-pr.35413.460eeef"
86
+ "@nx/cypress": "23.0.0-rc.0",
87
+ "@nx/eslint": "23.0.0-rc.0",
88
+ "@nx/jest": "23.0.0-rc.0",
89
+ "@nx/playwright": "23.0.0-rc.0",
90
+ "@nx/webpack": "23.0.0-rc.0",
91
+ "@nx/vite": "23.0.0-rc.0"
53
92
  },
54
93
  "peerDependenciesMeta": {
55
94
  "@nx/cypress": {
package/babel.d.ts DELETED
@@ -1,2 +0,0 @@
1
- declare const nxJsBabelPreset: any;
2
- //# sourceMappingURL=babel.d.ts.map
package/babel.d.ts.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"babel.d.ts","sourceRoot":"","sources":["../../../packages/web/babel.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,eAAe,KAA0B,CAAC"}
package/index.d.ts.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../packages/web/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,EAAE,oBAAoB,EAAE,MAAM,0CAA0C,CAAC;AAChF,OAAO,EAAE,uBAAuB,EAAE,MAAM,0DAA0D,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"compat.d.ts","sourceRoot":"","sources":["../../../../../../packages/web/src/executors/file-server/compat.ts"],"names":[],"mappings":";AAGA,wBAA6C"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"file-server.impl.d.ts","sourceRoot":"","sources":["../../../../../../packages/web/src/executors/file-server/file-server.impl.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,eAAe,EAIhB,MAAM,YAAY,CAAC;AAEpB,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AA6IlC,wBAA+B,kBAAkB,CAC/C,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,eAAe;;;;aA4HM,OAAO;YAUtC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"application.d.ts","sourceRoot":"","sources":["../../../../../../packages/web/src/generators/application/application.ts"],"names":[],"mappings":"AAAA,OAAO,EAML,iBAAiB,EASjB,IAAI,EAKL,MAAM,YAAY,CAAC;AAkBpB,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AA2PlC,wBAAsB,oBAAoB,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,8BAKpE;AAED,wBAAsB,4BAA4B,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,8BAqW5E;AA0DD,eAAe,oBAAoB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../../../../../packages/web/src/generators/init/init.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,iBAAiB,EAGjB,IAAI,EACL,MAAM,YAAY,CAAC;AAEpB,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAkBlC,wBAAsB,gBAAgB,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,8BAWhE;AAED,eAAe,gBAAgB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"static-serve-configuration.d.ts","sourceRoot":"","sources":["../../../../../../packages/web/src/generators/static-serve/static-serve-configuration.ts"],"names":[],"mappings":"AAAA,OAAO,EASL,KAAK,IAAI,EAEV,MAAM,YAAY,CAAC;AAGpB,UAAU,oBAAoB;IAC5B,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,GAAG,CAAC,EAAE,OAAO,CAAC;CACf;AASD,wBAAsB,uBAAuB,CAC3C,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,oBAAoB,iBAI9B;AA4FD,eAAe,uBAAuB,CAAC"}
@@ -1,2 +0,0 @@
1
- export { WebpackNxBuildCoordinationPlugin } from '@nx/webpack/src/plugins/webpack-nx-build-coordination-plugin';
2
- //# sourceMappingURL=webpack-nx-build-coordination-plugin.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"webpack-nx-build-coordination-plugin.d.ts","sourceRoot":"","sources":["../../../../../packages/web/src/plugins/webpack-nx-build-coordination-plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gCAAgC,EAAE,MAAM,8DAA8D,CAAC"}
@@ -1,5 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.WebpackNxBuildCoordinationPlugin = void 0;
4
- var webpack_nx_build_coordination_plugin_1 = require("@nx/webpack/src/plugins/webpack-nx-build-coordination-plugin");
5
- Object.defineProperty(exports, "WebpackNxBuildCoordinationPlugin", { enumerable: true, get: function () { return webpack_nx_build_coordination_plugin_1.WebpackNxBuildCoordinationPlugin; } });
package/src/utils/fs.d.ts DELETED
@@ -1,2 +0,0 @@
1
- export * from '@nx/webpack/src/utils/fs';
2
- //# sourceMappingURL=fs.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"fs.d.ts","sourceRoot":"","sources":["../../../../../packages/web/src/utils/fs.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC"}
package/src/utils/fs.js DELETED
@@ -1,4 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- tslib_1.__exportStar(require("@nx/webpack/src/utils/fs"), exports);
@@ -1 +0,0 @@
1
- {"version":3,"file":"has-vite-plugin.d.ts","sourceRoot":"","sources":["../../../../../packages/web/src/utils/has-vite-plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,IAAI,EAAE,MAAM,YAAY,CAAC;AAE9C,wBAAgB,aAAa,CAAC,IAAI,EAAE,IAAI,WAOvC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"has-webpack-plugin.d.ts","sourceRoot":"","sources":["../../../../../packages/web/src/utils/has-webpack-plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,IAAI,EAAE,MAAM,YAAY,CAAC;AAE9C,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,IAAI,WAO1C"}
@@ -1,2 +0,0 @@
1
- export * from '@nx/webpack/src/executors/webpack/lib/normalize-options';
2
- //# sourceMappingURL=normalize.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"normalize.d.ts","sourceRoot":"","sources":["../../../../../packages/web/src/utils/normalize.ts"],"names":[],"mappings":"AAAA,cAAc,yDAAyD,CAAC"}
@@ -1,4 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- tslib_1.__exportStar(require("@nx/webpack/src/executors/webpack/lib/normalize-options"), exports);
@@ -1 +0,0 @@
1
- {"version":3,"file":"versions.d.ts","sourceRoot":"","sources":["../../../../../packages/web/src/utils/versions.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS,KAAwC,CAAC;AAE/D,eAAO,MAAM,gBAAgB,WAAW,CAAC;AACzC,eAAO,MAAM,gBAAgB,YAAY,CAAC;AAC1C,eAAO,MAAM,YAAY,WAAW,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"wait-for-port-open.d.ts","sourceRoot":"","sources":["../../../../../packages/web/src/utils/wait-for-port-open.ts"],"names":[],"mappings":"AAGA,wBAAgB,eAAe,CAC7B,IAAI,EAAE,MAAM,EACZ,OAAO,GAAE;IAAE,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,UAAU,CAAC,EAAE,MAAM,CAAA;CAAO,GACrE,OAAO,CAAC,IAAI,CAAC,CA2Cf"}
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes