nx 17.3.0 → 17.3.1
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/run-executor.js +1 -1
- package/package.json +12 -12
- package/src/adapter/compat.d.ts +1 -1
- package/src/adapter/compat.js +1 -0
- package/src/command-line/affected/command-object.d.ts +4 -4
- package/src/command-line/affected/command-object.js +4 -4
- package/src/command-line/graph/graph.js +1 -1
- package/src/command-line/report/report.js +1 -1
- package/src/config/project-graph.d.ts +2 -2
- package/src/config/workspaces.d.ts +1 -1
- package/src/config/workspaces.js +2 -2
- package/src/core/graph/main.js +1 -1
- package/src/core/graph/styles.css +1 -1
- package/src/daemon/client/client.js +1 -1
- package/src/devkit-exports.js +1 -1
- package/src/executors/run-script/run-script.impl.js +2 -6
- package/src/hasher/hash-task.js +1 -1
- package/src/hasher/task-hasher.d.ts +4 -4
- package/src/nx-cloud/generators/connect-to-nx-cloud/schema.json +1 -1
- package/src/plugins/js/project-graph/build-dependencies/strip-source-code.d.ts +1 -1
- package/src/plugins/js/project-graph/build-dependencies/strip-source-code.js +1 -1
- package/src/plugins/js/project-graph/build-dependencies/typescript-import-locator.d.ts +1 -1
- package/src/plugins/js/project-graph/build-dependencies/typescript-import-locator.js +1 -1
- package/src/plugins/js/utils/register.d.ts +1 -1
- package/src/plugins/js/utils/register.js +2 -0
- package/src/project-graph/file-utils.d.ts +1 -1
- package/src/project-graph/file-utils.js +2 -2
- package/src/project-graph/nx-deps-cache.js +1 -1
- package/src/project-graph/project-graph-builder.d.ts +1 -1
- package/src/project-graph/project-graph-builder.js +1 -1
- package/src/tasks-runner/create-task-graph.js +1 -1
- package/src/tasks-runner/init-tasks-runner.js +1 -1
- package/src/tasks-runner/run-command.js +4 -4
- package/src/tasks-runner/task-env.js +1 -2
- package/src/tasks-runner/utils.d.ts +1 -1
- package/src/utils/nx-plugin.deprecated.d.ts +6 -6
- package/src/utils/nx-plugin.deprecated.js +1 -1
- package/src/utils/typescript.js +1 -1
- package/src/utils/workspace-configuration-check.js +1 -1
package/bin/run-executor.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nx",
|
|
3
|
-
"version": "17.3.
|
|
3
|
+
"version": "17.3.1",
|
|
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": "17.3.
|
|
69
|
+
"@nrwl/tao": "17.3.1"
|
|
70
70
|
},
|
|
71
71
|
"peerDependencies": {
|
|
72
72
|
"@swc-node/register": "^1.6.7",
|
|
@@ -81,16 +81,16 @@
|
|
|
81
81
|
}
|
|
82
82
|
},
|
|
83
83
|
"optionalDependencies": {
|
|
84
|
-
"@nx/nx-darwin-x64": "17.3.
|
|
85
|
-
"@nx/nx-darwin-arm64": "17.3.
|
|
86
|
-
"@nx/nx-linux-x64-gnu": "17.3.
|
|
87
|
-
"@nx/nx-linux-x64-musl": "17.3.
|
|
88
|
-
"@nx/nx-win32-x64-msvc": "17.3.
|
|
89
|
-
"@nx/nx-linux-arm64-gnu": "17.3.
|
|
90
|
-
"@nx/nx-linux-arm64-musl": "17.3.
|
|
91
|
-
"@nx/nx-linux-arm-gnueabihf": "17.3.
|
|
92
|
-
"@nx/nx-win32-arm64-msvc": "17.3.
|
|
93
|
-
"@nx/nx-freebsd-x64": "17.3.
|
|
84
|
+
"@nx/nx-darwin-x64": "17.3.1",
|
|
85
|
+
"@nx/nx-darwin-arm64": "17.3.1",
|
|
86
|
+
"@nx/nx-linux-x64-gnu": "17.3.1",
|
|
87
|
+
"@nx/nx-linux-x64-musl": "17.3.1",
|
|
88
|
+
"@nx/nx-win32-x64-msvc": "17.3.1",
|
|
89
|
+
"@nx/nx-linux-arm64-gnu": "17.3.1",
|
|
90
|
+
"@nx/nx-linux-arm64-musl": "17.3.1",
|
|
91
|
+
"@nx/nx-linux-arm-gnueabihf": "17.3.1",
|
|
92
|
+
"@nx/nx-win32-arm64-msvc": "17.3.1",
|
|
93
|
+
"@nx/nx-freebsd-x64": "17.3.1"
|
|
94
94
|
},
|
|
95
95
|
"nx-migrations": {
|
|
96
96
|
"migrations": "./migrations.json",
|
package/src/adapter/compat.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const allowedProjectExtensions: readonly ["tags", "implicitDependencies", "configFilePath", "$schema", "generators", "namedInputs", "name", "files", "root", "sourceRoot", "projectType", "release"];
|
|
1
|
+
export declare const allowedProjectExtensions: readonly ["tags", "implicitDependencies", "configFilePath", "$schema", "generators", "namedInputs", "name", "files", "root", "sourceRoot", "projectType", "release", "includedScripts"];
|
|
2
2
|
export declare const allowedWorkspaceExtensions: readonly ["implicitDependencies", "affected", "tasksRunnerOptions", "workspaceLayout", "plugins", "targetDefaults", "files", "generators", "namedInputs", "extends", "cli", "pluginsConfig", "defaultProject", "installation", "release", "nxCloudAccessToken", "nxCloudUrl", "nxCloudEncryptionKey", "parallel", "cacheDirectory", "useDaemonProcess"];
|
package/src/adapter/compat.js
CHANGED
|
@@ -4,13 +4,13 @@ export declare const yargsAffectedTestCommand: CommandModule;
|
|
|
4
4
|
export declare const yargsAffectedBuildCommand: CommandModule;
|
|
5
5
|
export declare const yargsAffectedLintCommand: CommandModule;
|
|
6
6
|
export declare const yargsAffectedE2ECommand: CommandModule;
|
|
7
|
-
export declare const affectedGraphDeprecationMessage = "Use `nx graph --affected`, or `nx affected --graph` instead depending on which best suits your use case. The `affected:graph` command will be removed in Nx
|
|
7
|
+
export declare const affectedGraphDeprecationMessage = "Use `nx graph --affected`, or `nx affected --graph` instead depending on which best suits your use case. The `affected:graph` command will be removed in Nx 19.";
|
|
8
8
|
/**
|
|
9
|
-
* @deprecated 'Use `nx graph --affected`, or` nx affected --graph` instead depending on which best suits your use case. The `affected:graph` command will be removed in Nx
|
|
9
|
+
* @deprecated 'Use `nx graph --affected`, or` nx affected --graph` instead depending on which best suits your use case. The `affected:graph` command will be removed in Nx 19.'
|
|
10
10
|
*/
|
|
11
11
|
export declare const yargsAffectedGraphCommand: CommandModule;
|
|
12
|
-
export declare const printAffectedDeprecationMessage = "Use `nx show projects --affected`, `nx affected --graph -t build` or `nx graph --affected` depending on which best suits your use case. The `print-affected` command will be removed in Nx
|
|
12
|
+
export declare const printAffectedDeprecationMessage = "Use `nx show projects --affected`, `nx affected --graph -t build` or `nx graph --affected` depending on which best suits your use case. The `print-affected` command will be removed in Nx 19.";
|
|
13
13
|
/**
|
|
14
|
-
* @deprecated 'Use `nx show --affected`, `nx affected --graph` or `nx graph --affected` depending on which best suits your use case. The `print-affected` command will be removed in Nx
|
|
14
|
+
* @deprecated 'Use `nx show --affected`, `nx affected --graph` or `nx graph --affected` depending on which best suits your use case. The `print-affected` command will be removed in Nx 19.'
|
|
15
15
|
*/
|
|
16
16
|
export declare const yargsPrintAffectedCommand: CommandModule;
|
|
@@ -54,9 +54,9 @@ exports.yargsAffectedE2ECommand = {
|
|
|
54
54
|
target: 'e2e',
|
|
55
55
|
}),
|
|
56
56
|
};
|
|
57
|
-
exports.affectedGraphDeprecationMessage = 'Use `nx graph --affected`, or `nx affected --graph` instead depending on which best suits your use case. The `affected:graph` command will be removed in Nx
|
|
57
|
+
exports.affectedGraphDeprecationMessage = 'Use `nx graph --affected`, or `nx affected --graph` instead depending on which best suits your use case. The `affected:graph` command will be removed in Nx 19.';
|
|
58
58
|
/**
|
|
59
|
-
* @deprecated 'Use `nx graph --affected`, or` nx affected --graph` instead depending on which best suits your use case. The `affected:graph` command will be removed in Nx
|
|
59
|
+
* @deprecated 'Use `nx graph --affected`, or` nx affected --graph` instead depending on which best suits your use case. The `affected:graph` command will be removed in Nx 19.'
|
|
60
60
|
*/
|
|
61
61
|
exports.yargsAffectedGraphCommand = {
|
|
62
62
|
command: 'affected:graph',
|
|
@@ -68,9 +68,9 @@ exports.yargsAffectedGraphCommand = {
|
|
|
68
68
|
}),
|
|
69
69
|
deprecated: exports.affectedGraphDeprecationMessage,
|
|
70
70
|
};
|
|
71
|
-
exports.printAffectedDeprecationMessage = 'Use `nx show projects --affected`, `nx affected --graph -t build` or `nx graph --affected` depending on which best suits your use case. The `print-affected` command will be removed in Nx
|
|
71
|
+
exports.printAffectedDeprecationMessage = 'Use `nx show projects --affected`, `nx affected --graph -t build` or `nx graph --affected` depending on which best suits your use case. The `print-affected` command will be removed in Nx 19.';
|
|
72
72
|
/**
|
|
73
|
-
* @deprecated 'Use `nx show --affected`, `nx affected --graph` or `nx graph --affected` depending on which best suits your use case. The `print-affected` command will be removed in Nx
|
|
73
|
+
* @deprecated 'Use `nx show --affected`, `nx affected --graph` or `nx graph --affected` depending on which best suits your use case. The `print-affected` command will be removed in Nx 19.'
|
|
74
74
|
*/
|
|
75
75
|
exports.yargsPrintAffectedCommand = {
|
|
76
76
|
command: 'print-affected',
|
|
@@ -244,7 +244,7 @@ async function generateGraph(args, affectedProjects) {
|
|
|
244
244
|
'- affectedProjects',
|
|
245
245
|
'- criticalPath',
|
|
246
246
|
'',
|
|
247
|
-
'These fields will be removed in Nx
|
|
247
|
+
'These fields will be removed in Nx 19. If you need to see which projects were affected, use `nx show projects --affected`.',
|
|
248
248
|
],
|
|
249
249
|
});
|
|
250
250
|
output_1.output.success({
|
|
@@ -180,7 +180,7 @@ function findInstalledCommunityPlugins() {
|
|
|
180
180
|
exports.findInstalledCommunityPlugins = findInstalledCommunityPlugins;
|
|
181
181
|
function findInstalledPackagesWeCareAbout() {
|
|
182
182
|
const packagesWeMayCareAbout = {};
|
|
183
|
-
// TODO (
|
|
183
|
+
// TODO (v19): Remove workaround for hiding @nrwl packages when matching @nx package is found.
|
|
184
184
|
const packageChangeMap = {
|
|
185
185
|
'@nrwl/nx-plugin': '@nx/plugin',
|
|
186
186
|
'@nx/plugin': '@nrwl/nx-plugin',
|
|
@@ -111,7 +111,7 @@ export interface ProjectGraphDependency {
|
|
|
111
111
|
}
|
|
112
112
|
/**
|
|
113
113
|
* Additional information to be used to process a project graph
|
|
114
|
-
* @deprecated The {@link ProjectGraphProcessor} is deprecated. This will be removed in Nx
|
|
114
|
+
* @deprecated The {@link ProjectGraphProcessor} is deprecated. This will be removed in Nx 19.
|
|
115
115
|
*/
|
|
116
116
|
export interface ProjectGraphProcessorContext {
|
|
117
117
|
/**
|
|
@@ -132,6 +132,6 @@ export interface ProjectGraphProcessorContext {
|
|
|
132
132
|
}
|
|
133
133
|
/**
|
|
134
134
|
* A function that produces an updated ProjectGraph
|
|
135
|
-
* @deprecated Use {@link CreateNodes} and {@link CreateDependencies} instead. This will be removed in Nx
|
|
135
|
+
* @deprecated Use {@link CreateNodes} and {@link CreateDependencies} instead. This will be removed in Nx 19.
|
|
136
136
|
*/
|
|
137
137
|
export type ProjectGraphProcessor = (currentGraph: ProjectGraph, context: ProjectGraphProcessorContext) => ProjectGraph | Promise<ProjectGraph>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { NxJsonConfiguration } from './nx-json';
|
|
2
2
|
import { ProjectsConfigurations } from './workspace-json-project-json';
|
|
3
3
|
/**
|
|
4
|
-
* @deprecated This will be removed in
|
|
4
|
+
* @deprecated This will be removed in v19. Use {@link readProjectsConfigurationFromProjectGraph} instead.
|
|
5
5
|
*/
|
|
6
6
|
export declare class Workspaces {
|
|
7
7
|
private root;
|
package/src/config/workspaces.js
CHANGED
|
@@ -4,9 +4,9 @@ exports.toProjectName = exports.Workspaces = void 0;
|
|
|
4
4
|
const path_1 = require("path");
|
|
5
5
|
const project_graph_1 = require("../project-graph/project-graph");
|
|
6
6
|
const nx_json_1 = require("./nx-json");
|
|
7
|
-
// TODO(
|
|
7
|
+
// TODO(v19): remove this class
|
|
8
8
|
/**
|
|
9
|
-
* @deprecated This will be removed in
|
|
9
|
+
* @deprecated This will be removed in v19. Use {@link readProjectsConfigurationFromProjectGraph} instead.
|
|
10
10
|
*/
|
|
11
11
|
class Workspaces {
|
|
12
12
|
constructor(root) {
|