@nx/remix 20.3.1 → 20.3.3

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/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  (The MIT License)
2
2
 
3
- Copyright (c) 2017-2024 Narwhal Technologies Inc.
3
+ Copyright (c) 2017-2025 Narwhal Technologies Inc.
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining
6
6
  a copy of this software and associated documentation files (the
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/remix",
3
- "version": "20.3.1",
3
+ "version": "20.3.3",
4
4
  "description": "The Remix plugin for Nx contains executors and generators for managing Remix applications and libraries within an Nx workspace. It provides:\n\n\n- Integration with libraries such as Vitest, Jest, Playwright, Cypress, and Storybook.\n\n- Generators for applications, libraries, routes, loaders, and more.\n\n- Library build support for publishing packages to npm or other registries.\n\n- Utilities for automatic workspace refactoring.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -29,9 +29,9 @@
29
29
  "migrations": "./migrations.json"
30
30
  },
31
31
  "dependencies": {
32
- "@nx/devkit": "20.3.1",
33
- "@nx/js": "20.3.1",
34
- "@nx/react": "20.3.1",
32
+ "@nx/devkit": "20.3.3",
33
+ "@nx/js": "20.3.3",
34
+ "@nx/react": "20.3.3",
35
35
  "tslib": "^2.3.1",
36
36
  "@phenomnomnominal/tsquery": "~5.0.1"
37
37
  },
@@ -13,6 +13,7 @@ const init_1 = require("../init/init");
13
13
  const update_dependencies_1 = require("../utils/update-dependencies");
14
14
  const lib_1 = require("./lib");
15
15
  const ts_solution_setup_1 = require("@nx/js/src/utils/typescript/ts-solution-setup");
16
+ const sort_fields_1 = require("@nx/js/src/utils/package-json/sort-fields");
16
17
  function remixApplicationGenerator(tree, options) {
17
18
  return remixApplicationGeneratorInternal(tree, {
18
19
  addPlugin: true,
@@ -188,9 +189,6 @@ export default {...nxPreset};
188
189
  }
189
190
  tasks.push(await (0, lib_1.addE2E)(tree, options));
190
191
  (0, lib_1.addViteTempFilesToGitIgnore)(tree);
191
- if (!options.skipFormat) {
192
- await (0, devkit_1.formatFiles)(tree);
193
- }
194
192
  (0, ts_solution_setup_1.updateTsconfigFiles)(tree, options.projectRoot, 'tsconfig.app.json', {
195
193
  jsx: 'react-jsx',
196
194
  module: 'esnext',
@@ -203,6 +201,10 @@ export default {...nxPreset};
203
201
  if (options.useTsSolution) {
204
202
  (0, ts_solution_setup_1.addProjectToTsSolutionWorkspace)(tree, options.projectRoot);
205
203
  }
204
+ (0, sort_fields_1.sortPackageJsonFields)(tree, options.projectRoot);
205
+ if (!options.skipFormat) {
206
+ await (0, devkit_1.formatFiles)(tree);
207
+ }
206
208
  tasks.push(() => {
207
209
  (0, log_show_project_command_1.logShowProjectCommand)(options.projectName);
208
210
  });
@@ -7,6 +7,7 @@ const js_1 = require("@nx/js");
7
7
  const react_1 = require("@nx/react");
8
8
  const lib_1 = require("./lib");
9
9
  const ts_solution_setup_1 = require("@nx/js/src/utils/typescript/ts-solution-setup");
10
+ const sort_fields_1 = require("@nx/js/src/utils/package-json/sort-fields");
10
11
  async function remixLibraryGenerator(tree, schema) {
11
12
  return remixLibraryGeneratorInternal(tree, { addPlugin: false, ...schema });
12
13
  }
@@ -52,6 +53,7 @@ async function remixLibraryGeneratorInternal(tree, schema) {
52
53
  if (options.isUsingTsSolutionConfig) {
53
54
  (0, ts_solution_setup_1.addProjectToTsSolutionWorkspace)(tree, options.projectRoot);
54
55
  }
56
+ (0, sort_fields_1.sortPackageJsonFields)(tree, options.projectRoot);
55
57
  if (!options.skipFormat) {
56
58
  await (0, devkit_1.formatFiles)(tree);
57
59
  }