nx 20.0.7 → 20.1.0-beta.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.
- package/bin/post-install.js +2 -2
- package/package.json +12 -38
- package/src/adapter/angular-json.js +2 -8
- package/src/command-line/format/command-object.js +9 -0
- package/src/command-line/format/format.js +3 -1
- package/src/core/graph/main.js +1 -1
- package/src/core/graph/styles.js +1 -1
- package/src/devkit-internals.d.ts +1 -0
- package/src/devkit-internals.js +3 -1
- package/src/native/nx.wasm32-wasi.wasm +0 -0
- package/src/plugins/js/utils/config.js +2 -9
- package/src/tasks-runner/create-task-graph.d.ts +15 -0
- package/src/tasks-runner/create-task-graph.js +37 -9
- package/src/utils/command-line-utils.d.ts +1 -0
- package/src/utils/print-help.js +3 -9
package/bin/post-install.js
CHANGED
@@ -10,14 +10,14 @@ const update_manager_1 = require("../src/nx-cloud/update-manager");
|
|
10
10
|
const get_cloud_options_1 = require("../src/nx-cloud/utilities/get-cloud-options");
|
11
11
|
const nx_cloud_utils_1 = require("../src/utils/nx-cloud-utils");
|
12
12
|
const nx_json_1 = require("../src/config/nx-json");
|
13
|
-
const workspace_context_1 = require("../src/utils/workspace-context");
|
14
13
|
const logger_1 = require("../src/utils/logger");
|
14
|
+
const workspace_context_1 = require("../src/utils/workspace-context");
|
15
15
|
(async () => {
|
16
16
|
const start = new Date();
|
17
17
|
try {
|
18
|
-
(0, workspace_context_1.setupWorkspaceContext)(workspace_root_1.workspaceRoot);
|
19
18
|
if (isMainNxPackage() && (0, fileutils_1.fileExists)((0, path_1.join)(workspace_root_1.workspaceRoot, 'nx.json'))) {
|
20
19
|
(0, assert_supported_platform_1.assertSupportedPlatform)();
|
20
|
+
(0, workspace_context_1.setupWorkspaceContext)(workspace_root_1.workspaceRoot);
|
21
21
|
try {
|
22
22
|
await client_1.daemonClient.stop();
|
23
23
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "nx",
|
3
|
-
"version": "20.0.
|
3
|
+
"version": "20.1.0-beta.0",
|
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": {
|
@@ -36,7 +36,7 @@
|
|
36
36
|
"dependencies": {
|
37
37
|
"@napi-rs/wasm-runtime": "0.2.4",
|
38
38
|
"@yarnpkg/lockfile": "^1.1.0",
|
39
|
-
"@yarnpkg/parsers": "3.0.
|
39
|
+
"@yarnpkg/parsers": "3.0.2",
|
40
40
|
"@zkochan/js-yaml": "0.0.7",
|
41
41
|
"axios": "^1.7.4",
|
42
42
|
"chalk": "^4.1.0",
|
@@ -80,76 +80,50 @@
|
|
80
80
|
}
|
81
81
|
},
|
82
82
|
"optionalDependencies": {
|
83
|
-
"@nx/nx-darwin-x64": "20.0.
|
84
|
-
"@nx/nx-darwin-arm64": "20.0.
|
85
|
-
"@nx/nx-linux-x64-gnu": "20.0.
|
86
|
-
"@nx/nx-linux-x64-musl": "20.0.
|
87
|
-
"@nx/nx-win32-x64-msvc": "20.0.
|
88
|
-
"@nx/nx-linux-arm64-gnu": "20.0.
|
89
|
-
"@nx/nx-linux-arm64-musl": "20.0.
|
90
|
-
"@nx/nx-linux-arm-gnueabihf": "20.0.
|
91
|
-
"@nx/nx-win32-arm64-msvc": "20.0.
|
92
|
-
"@nx/nx-freebsd-x64": "20.0.
|
83
|
+
"@nx/nx-darwin-x64": "20.1.0-beta.0",
|
84
|
+
"@nx/nx-darwin-arm64": "20.1.0-beta.0",
|
85
|
+
"@nx/nx-linux-x64-gnu": "20.1.0-beta.0",
|
86
|
+
"@nx/nx-linux-x64-musl": "20.1.0-beta.0",
|
87
|
+
"@nx/nx-win32-x64-msvc": "20.1.0-beta.0",
|
88
|
+
"@nx/nx-linux-arm64-gnu": "20.1.0-beta.0",
|
89
|
+
"@nx/nx-linux-arm64-musl": "20.1.0-beta.0",
|
90
|
+
"@nx/nx-linux-arm-gnueabihf": "20.1.0-beta.0",
|
91
|
+
"@nx/nx-win32-arm64-msvc": "20.1.0-beta.0",
|
92
|
+
"@nx/nx-freebsd-x64": "20.1.0-beta.0"
|
93
93
|
},
|
94
94
|
"nx-migrations": {
|
95
95
|
"migrations": "./migrations.json",
|
96
96
|
"packageGroup": [
|
97
97
|
"@nx/js",
|
98
|
-
"@nrwl/js",
|
99
98
|
"@nx/jest",
|
100
|
-
"@nrwl/jest",
|
101
99
|
"@nx/linter",
|
102
100
|
"@nx/eslint",
|
103
|
-
"@nrwl/linter",
|
104
101
|
"@nx/workspace",
|
105
|
-
"@nrwl/workspace",
|
106
102
|
"@nx/angular",
|
107
|
-
"@nrwl/angular",
|
108
103
|
"@nx/cypress",
|
109
|
-
"@nrwl/cypress",
|
110
104
|
"@nx/detox",
|
111
|
-
"@nrwl/detox",
|
112
105
|
"@nx/devkit",
|
113
|
-
"@nrwl/devkit",
|
114
106
|
"@nx/esbuild",
|
115
|
-
"@nrwl/esbuild",
|
116
107
|
"@nx/eslint-plugin",
|
117
|
-
"@nrwl/eslint-plugin-nx",
|
118
108
|
"@nx/expo",
|
119
|
-
"@nrwl/expo",
|
120
109
|
"@nx/express",
|
121
|
-
"@nrwl/express",
|
122
110
|
"@nx/gradle",
|
123
111
|
"@nx/nest",
|
124
|
-
"@nrwl/nest",
|
125
112
|
"@nx/next",
|
126
|
-
"@nrwl/next",
|
127
113
|
"@nx/node",
|
128
|
-
"@nrwl/node",
|
129
114
|
"@nx/nuxt",
|
130
115
|
"@nx/playwright",
|
131
116
|
"@nx/plugin",
|
132
|
-
"@nrwl/nx-plugin",
|
133
117
|
"@nx/react",
|
134
|
-
"@nrwl/react",
|
135
118
|
"@nx/react-native",
|
136
|
-
"@nrwl/react-native",
|
137
119
|
"@nx/rollup",
|
138
|
-
"@nrwl/rollup",
|
139
120
|
"@nx/remix",
|
140
|
-
"@nrwl/remix",
|
141
121
|
"@nx/rspack",
|
142
|
-
"@nrwl/rspack",
|
143
122
|
"@nx/storybook",
|
144
|
-
"@nrwl/storybook",
|
145
|
-
"@nrwl/tao",
|
146
123
|
"@nx/vite",
|
147
|
-
"@nrwl/vite",
|
148
124
|
"@nx/vue",
|
149
125
|
"@nx/web",
|
150
|
-
"@nrwl/web",
|
151
126
|
"@nx/webpack",
|
152
|
-
"@nrwl/webpack",
|
153
127
|
{
|
154
128
|
"package": "nx-cloud",
|
155
129
|
"version": "latest"
|
@@ -25,7 +25,7 @@ function shouldMergeAngularProjects(root, includeProjectsFromAngularJson) {
|
|
25
25
|
// Include projects from angular.json if explicitly required.
|
26
26
|
// e.g. when invoked from `packages/devkit/src/utils/convert-nx-executor.ts`
|
27
27
|
(includeProjectsFromAngularJson ||
|
28
|
-
// Or if a workspace has `@
|
28
|
+
// Or if a workspace has `@nx/angular` installed then projects from `angular.json` to be considered by Nx.
|
29
29
|
isAngularPluginInstalled())) {
|
30
30
|
return true;
|
31
31
|
}
|
@@ -40,13 +40,7 @@ function isAngularPluginInstalled() {
|
|
40
40
|
return true;
|
41
41
|
}
|
42
42
|
catch {
|
43
|
-
|
44
|
-
require.resolve('@nrwl/angular');
|
45
|
-
return true;
|
46
|
-
}
|
47
|
-
catch {
|
48
|
-
return false;
|
49
|
-
}
|
43
|
+
return false;
|
50
44
|
}
|
51
45
|
}
|
52
46
|
function readAngularJson(angularCliWorkspaceRoot) {
|
@@ -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
|
-
|
42
|
+
if (nxArgs.sortRootTsconfigPaths) {
|
43
|
+
sortTsConfig();
|
44
|
+
}
|
43
45
|
addRootConfigFiles(chunkList, nxArgs);
|
44
46
|
chunkList.forEach((chunk) => write(chunk));
|
45
47
|
break;
|