@nx/node 20.4.0-canary.20250115-0ae8665 → 20.4.0-canary.20250116-a127177

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/node",
3
- "version": "20.4.0-canary.20250115-0ae8665",
3
+ "version": "20.4.0-canary.20250116-a127177",
4
4
  "private": false,
5
5
  "description": "The Node Plugin for Nx contains generators to manage Node applications within an Nx workspace.",
6
6
  "repository": {
@@ -32,10 +32,10 @@
32
32
  },
33
33
  "dependencies": {
34
34
  "tslib": "^2.3.0",
35
- "@nx/devkit": "20.4.0-canary.20250115-0ae8665",
36
- "@nx/jest": "20.4.0-canary.20250115-0ae8665",
37
- "@nx/js": "20.4.0-canary.20250115-0ae8665",
38
- "@nx/eslint": "20.4.0-canary.20250115-0ae8665"
35
+ "@nx/devkit": "20.4.0-canary.20250116-a127177",
36
+ "@nx/jest": "20.4.0-canary.20250116-a127177",
37
+ "@nx/js": "20.4.0-canary.20250116-a127177",
38
+ "@nx/eslint": "20.4.0-canary.20250116-a127177"
39
39
  },
40
40
  "publishConfig": {
41
41
  "access": "public"
@@ -19,6 +19,7 @@ const has_webpack_plugin_1 = require("../../utils/has-webpack-plugin");
19
19
  const target_defaults_utils_1 = require("@nx/devkit/src/generators/target-defaults-utils");
20
20
  const log_show_project_command_1 = require("@nx/devkit/src/utils/log-show-project-command");
21
21
  const ts_solution_setup_1 = require("@nx/js/src/utils/typescript/ts-solution-setup");
22
+ const sort_fields_1 = require("@nx/js/src/utils/package-json/sort-fields");
22
23
  function getWebpackBuildConfig(project, options) {
23
24
  return {
24
25
  executor: `@nx/webpack:webpack`,
@@ -440,6 +441,7 @@ async function applicationGeneratorInternal(tree, schema) {
440
441
  if (options.isUsingTsSolutionConfig) {
441
442
  (0, ts_solution_setup_1.addProjectToTsSolutionWorkspace)(tree, options.appProjectRoot);
442
443
  }
444
+ (0, sort_fields_1.sortPackageJsonFields)(tree, options.appProjectRoot);
443
445
  if (!options.skipFormat) {
444
446
  await (0, devkit_1.formatFiles)(tree);
445
447
  }
@@ -13,6 +13,7 @@ const init_1 = require("../init/init");
13
13
  const target_defaults_utils_1 = require("@nx/devkit/src/generators/target-defaults-utils");
14
14
  const ts_solution_setup_1 = require("@nx/js/src/utils/typescript/ts-solution-setup");
15
15
  const get_import_path_1 = require("@nx/js/src/utils/get-import-path");
16
+ const sort_fields_1 = require("@nx/js/src/utils/package-json/sort-fields");
16
17
  async function libraryGenerator(tree, schema) {
17
18
  return await libraryGeneratorInternal(tree, {
18
19
  addPlugin: false,
@@ -66,6 +67,7 @@ async function libraryGeneratorInternal(tree, schema) {
66
67
  if (options.isUsingTsSolutionConfig) {
67
68
  (0, ts_solution_setup_1.addProjectToTsSolutionWorkspace)(tree, options.projectRoot);
68
69
  }
70
+ (0, sort_fields_1.sortPackageJsonFields)(tree, options.projectRoot);
69
71
  if (!schema.skipFormat) {
70
72
  await (0, devkit_1.formatFiles)(tree);
71
73
  }