nx 20.1.0-canary.20241018-f971c1b → 20.1.0-canary.20241022-e57b851

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nx",
3
- "version": "20.1.0-canary.20241018-f971c1b",
3
+ "version": "20.1.0-canary.20241022-e57b851",
4
4
  "private": false,
5
5
  "description": "The core Nx plugin contains the core functionality of Nx like the project graph, nx commands and task orchestration.",
6
6
  "repository": {
@@ -80,16 +80,16 @@
80
80
  }
81
81
  },
82
82
  "optionalDependencies": {
83
- "@nx/nx-darwin-x64": "20.1.0-canary.20241018-f971c1b",
84
- "@nx/nx-darwin-arm64": "20.1.0-canary.20241018-f971c1b",
85
- "@nx/nx-linux-x64-gnu": "20.1.0-canary.20241018-f971c1b",
86
- "@nx/nx-linux-x64-musl": "20.1.0-canary.20241018-f971c1b",
87
- "@nx/nx-win32-x64-msvc": "20.1.0-canary.20241018-f971c1b",
88
- "@nx/nx-linux-arm64-gnu": "20.1.0-canary.20241018-f971c1b",
89
- "@nx/nx-linux-arm64-musl": "20.1.0-canary.20241018-f971c1b",
90
- "@nx/nx-linux-arm-gnueabihf": "20.1.0-canary.20241018-f971c1b",
91
- "@nx/nx-win32-arm64-msvc": "20.1.0-canary.20241018-f971c1b",
92
- "@nx/nx-freebsd-x64": "20.1.0-canary.20241018-f971c1b"
83
+ "@nx/nx-darwin-x64": "20.1.0-canary.20241022-e57b851",
84
+ "@nx/nx-darwin-arm64": "20.1.0-canary.20241022-e57b851",
85
+ "@nx/nx-linux-x64-gnu": "20.1.0-canary.20241022-e57b851",
86
+ "@nx/nx-linux-x64-musl": "20.1.0-canary.20241022-e57b851",
87
+ "@nx/nx-win32-x64-msvc": "20.1.0-canary.20241022-e57b851",
88
+ "@nx/nx-linux-arm64-gnu": "20.1.0-canary.20241022-e57b851",
89
+ "@nx/nx-linux-arm64-musl": "20.1.0-canary.20241022-e57b851",
90
+ "@nx/nx-linux-arm-gnueabihf": "20.1.0-canary.20241022-e57b851",
91
+ "@nx/nx-win32-arm64-msvc": "20.1.0-canary.20241022-e57b851",
92
+ "@nx/nx-freebsd-x64": "20.1.0-canary.20241022-e57b851"
93
93
  },
94
94
  "nx-migrations": {
95
95
  "migrations": "./migrations.json",
@@ -35,6 +35,15 @@ function withFormatOptions(yargs) {
35
35
  describe: 'Projects to format (comma/space delimited).',
36
36
  type: 'string',
37
37
  coerce: shared_options_1.parseCSV,
38
+ })
39
+ .option('sort-root-tsconfig-paths', {
40
+ describe: `Ensure the workspace's tsconfig compilerOptions.paths are sorted. Warning: This will cause comments in the tsconfig to be lost.`,
41
+ type: 'boolean',
42
+ /**
43
+ * TODO(v21): Stop sorting tsconfig paths by default, paths are now less common/important
44
+ * in Nx workspace setups, and the sorting causes comments to be lost.
45
+ */
46
+ default: true,
38
47
  })
39
48
  .option('all', {
40
49
  describe: 'Format all projects.',
@@ -39,7 +39,9 @@ async function format(command, args) {
39
39
  const chunkList = (0, chunkify_1.chunkify)(patterns);
40
40
  switch (command) {
41
41
  case 'write':
42
- sortTsConfig();
42
+ if (nxArgs.sortRootTsconfigPaths) {
43
+ sortTsConfig();
44
+ }
43
45
  addRootConfigFiles(chunkList, nxArgs);
44
46
  chunkList.forEach((chunk) => write(chunk));
45
47
  break;
Binary file
@@ -34,6 +34,7 @@ export interface NxArgs {
34
34
  batch?: boolean;
35
35
  excludeTaskDependencies?: boolean;
36
36
  skipSync?: boolean;
37
+ sortRootTsconfigPaths?: boolean;
37
38
  }
38
39
  export declare function createOverrides(__overrides_unparsed__?: string[]): Record<string, any>;
39
40
  export declare function getBaseRef(nxJson: NxJsonConfiguration): string;