nx 19.0.0-canary.20240423-b37bfdb โ†’ 19.0.0-canary.20240426-ac9ad35

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 (36) hide show
  1. package/.eslintrc.json +1 -1
  2. package/package.json +12 -12
  3. package/src/command-line/init/implementation/react/index.js +1 -1
  4. package/src/config/nx-json.d.ts +2 -2
  5. package/src/core/graph/index.html +1 -2
  6. package/src/core/graph/main.js +1 -1
  7. package/src/core/graph/runtime.js +1 -1
  8. package/src/core/graph/styles.js +1 -1
  9. package/src/daemon/server/project-graph-incremental-recomputation.js +8 -8
  10. package/src/devkit-exports.d.ts +1 -1
  11. package/src/devkit-internals.d.ts +2 -0
  12. package/src/devkit-internals.js +5 -1
  13. package/src/executors/utils/convert-nx-executor.js +2 -1
  14. package/src/generators/utils/project-configuration.js +2 -2
  15. package/src/project-graph/build-project-graph.d.ts +8 -18
  16. package/src/project-graph/build-project-graph.js +58 -54
  17. package/src/project-graph/error-types.d.ts +26 -3
  18. package/src/project-graph/error-types.js +57 -1
  19. package/src/project-graph/file-utils.js +1 -1
  20. package/src/project-graph/plugins/internal-api.d.ts +3 -2
  21. package/src/project-graph/plugins/internal-api.js +3 -0
  22. package/src/project-graph/plugins/isolation/messaging.d.ts +24 -3
  23. package/src/project-graph/plugins/isolation/plugin-pool.js +20 -0
  24. package/src/project-graph/plugins/isolation/plugin-worker.js +19 -0
  25. package/src/project-graph/plugins/loader.js +13 -5
  26. package/src/project-graph/plugins/public-api.d.ts +11 -1
  27. package/src/project-graph/plugins/utils.d.ts +2 -2
  28. package/src/project-graph/plugins/utils.js +15 -16
  29. package/src/project-graph/project-graph.js +6 -6
  30. package/src/project-graph/utils/find-project-for-path.js +2 -3
  31. package/src/project-graph/utils/normalize-project-nodes.d.ts +1 -1
  32. package/src/project-graph/utils/normalize-project-nodes.js +8 -8
  33. package/src/project-graph/utils/project-configuration-utils.d.ts +21 -5
  34. package/src/project-graph/utils/project-configuration-utils.js +23 -14
  35. package/src/utils/perf-logging.js +3 -1
  36. package/src/core/graph/3rdpartylicenses.txt +0 -785
package/.eslintrc.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "extends": "../../.eslintrc",
3
3
  "rules": {},
4
- "ignorePatterns": ["!**/*"],
4
+ "ignorePatterns": ["!**/*", "**/__fixtures__/**/*"],
5
5
  "overrides": [
6
6
  {
7
7
  "files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nx",
3
- "version": "19.0.0-canary.20240423-b37bfdb",
3
+ "version": "19.0.0-canary.20240426-ac9ad35",
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": {
@@ -66,7 +66,7 @@
66
66
  "yargs-parser": "21.1.1",
67
67
  "node-machine-id": "1.1.12",
68
68
  "ora": "5.3.0",
69
- "@nrwl/tao": "19.0.0-canary.20240423-b37bfdb"
69
+ "@nrwl/tao": "19.0.0-canary.20240426-ac9ad35"
70
70
  },
71
71
  "peerDependencies": {
72
72
  "@swc-node/register": "^1.8.0",
@@ -81,16 +81,16 @@
81
81
  }
82
82
  },
83
83
  "optionalDependencies": {
84
- "@nx/nx-darwin-x64": "19.0.0-canary.20240423-b37bfdb",
85
- "@nx/nx-darwin-arm64": "19.0.0-canary.20240423-b37bfdb",
86
- "@nx/nx-linux-x64-gnu": "19.0.0-canary.20240423-b37bfdb",
87
- "@nx/nx-linux-x64-musl": "19.0.0-canary.20240423-b37bfdb",
88
- "@nx/nx-win32-x64-msvc": "19.0.0-canary.20240423-b37bfdb",
89
- "@nx/nx-linux-arm64-gnu": "19.0.0-canary.20240423-b37bfdb",
90
- "@nx/nx-linux-arm64-musl": "19.0.0-canary.20240423-b37bfdb",
91
- "@nx/nx-linux-arm-gnueabihf": "19.0.0-canary.20240423-b37bfdb",
92
- "@nx/nx-win32-arm64-msvc": "19.0.0-canary.20240423-b37bfdb",
93
- "@nx/nx-freebsd-x64": "19.0.0-canary.20240423-b37bfdb"
84
+ "@nx/nx-darwin-x64": "19.0.0-canary.20240426-ac9ad35",
85
+ "@nx/nx-darwin-arm64": "19.0.0-canary.20240426-ac9ad35",
86
+ "@nx/nx-linux-x64-gnu": "19.0.0-canary.20240426-ac9ad35",
87
+ "@nx/nx-linux-x64-musl": "19.0.0-canary.20240426-ac9ad35",
88
+ "@nx/nx-win32-x64-msvc": "19.0.0-canary.20240426-ac9ad35",
89
+ "@nx/nx-linux-arm64-gnu": "19.0.0-canary.20240426-ac9ad35",
90
+ "@nx/nx-linux-arm64-musl": "19.0.0-canary.20240426-ac9ad35",
91
+ "@nx/nx-linux-arm-gnueabihf": "19.0.0-canary.20240426-ac9ad35",
92
+ "@nx/nx-win32-arm64-msvc": "19.0.0-canary.20240426-ac9ad35",
93
+ "@nx/nx-freebsd-x64": "19.0.0-canary.20240426-ac9ad35"
94
94
  },
95
95
  "nx-migrations": {
96
96
  "migrations": "./migrations.json",
@@ -109,7 +109,7 @@ async function reorgnizeWorkspaceStructure(options) {
109
109
  }
110
110
  function createTempWorkspace(options) {
111
111
  (0, fs_extra_1.removeSync)('temp-workspace');
112
- (0, child_process_1.execSync)(`npx ${options.npxYesFlagNeeded ? '-y' : ''} create-nx-workspace@latest temp-workspace --appName=${options.reactAppName} --preset=react-monorepo --style=css --bundler=${options.isVite ? 'vite' : 'webpack'} --packageManager=${options.packageManager} ${options.nxCloud ? '--nxCloud=yes' : '--nxCloud=skip'} ${options.addE2e ? '--e2eTestRunner=cypress' : '--e2eTestRunner=none'}`, { stdio: [0, 1, 2] });
112
+ (0, child_process_1.execSync)(`npx ${options.npxYesFlagNeeded ? '-y' : ''} create-nx-workspace@latest temp-workspace --appName=${options.reactAppName} --preset=react-monorepo --style=css --bundler=${options.isVite ? 'vite' : 'webpack'} --packageManager=${options.packageManager} ${options.nxCloud ? '--nxCloud=yes' : '--nxCloud=skip'} ${options.addE2e ? '--e2eTestRunner=playwright' : '--e2eTestRunner=none'}`, { stdio: [0, 1, 2] });
113
113
  output_1.output.log({ title: '๐Ÿ‘‹ Welcome to Nx!' });
114
114
  output_1.output.log({ title: '๐Ÿงน Clearing unused files' });
115
115
  (0, fs_extra_1.copySync)((0, path_1.join)('temp-workspace', 'apps', options.reactAppName, 'project.json'), 'project.json');
@@ -395,9 +395,9 @@ export interface NxJsonConfiguration<T = '*' | string[]> {
395
395
  useInferencePlugins?: boolean;
396
396
  }
397
397
  export type PluginConfiguration = string | ExpandedPluginConfiguration;
398
- export type ExpandedPluginConfiguration = {
398
+ export type ExpandedPluginConfiguration<T = unknown> = {
399
399
  plugin: string;
400
- options?: unknown;
400
+ options?: T;
401
401
  include?: string[];
402
402
  exclude?: string[];
403
403
  };
@@ -3,8 +3,7 @@
3
3
  <head>
4
4
  <meta charset="utf-8" />
5
5
  <title>Nx Workspace Project Graph</title>
6
- <base href="/" />
7
-
6
+ <base href="/">
8
7
  <meta name="viewport" content="width=device-width, initial-scale=1" />
9
8
  <link rel="icon" type="image/x-icon" href="favicon.ico" />
10
9