nx 18.3.0-canary.20240330-ef81455 → 18.3.0-canary.20240403-270788e
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/init-local.js
CHANGED
@@ -126,7 +126,7 @@ function handleAngularCLIFallbacks(workspace) {
|
|
126
126
|
if (!process.argv[3]) {
|
127
127
|
console.log(`"ng completion" is not natively supported by Nx.
|
128
128
|
Instead, you could try an Nx Editor Plugin for a visual tool to run Nx commands. If you're using VSCode, you can use the Nx Console plugin, or if you're using WebStorm, you could use one of the available community plugins.
|
129
|
-
For more information, see https://nx.dev/
|
129
|
+
For more information, see https://nx.dev/getting-started/editor-setup`);
|
130
130
|
}
|
131
131
|
}
|
132
132
|
else if (process.argv[2] === 'cache') {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "nx",
|
3
|
-
"version": "18.3.0-canary.
|
3
|
+
"version": "18.3.0-canary.20240403-270788e",
|
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": "18.3.0-canary.
|
69
|
+
"@nrwl/tao": "18.3.0-canary.20240403-270788e"
|
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": "18.3.0-canary.
|
85
|
-
"@nx/nx-darwin-arm64": "18.3.0-canary.
|
86
|
-
"@nx/nx-linux-x64-gnu": "18.3.0-canary.
|
87
|
-
"@nx/nx-linux-x64-musl": "18.3.0-canary.
|
88
|
-
"@nx/nx-win32-x64-msvc": "18.3.0-canary.
|
89
|
-
"@nx/nx-linux-arm64-gnu": "18.3.0-canary.
|
90
|
-
"@nx/nx-linux-arm64-musl": "18.3.0-canary.
|
91
|
-
"@nx/nx-linux-arm-gnueabihf": "18.3.0-canary.
|
92
|
-
"@nx/nx-win32-arm64-msvc": "18.3.0-canary.
|
93
|
-
"@nx/nx-freebsd-x64": "18.3.0-canary.
|
84
|
+
"@nx/nx-darwin-x64": "18.3.0-canary.20240403-270788e",
|
85
|
+
"@nx/nx-darwin-arm64": "18.3.0-canary.20240403-270788e",
|
86
|
+
"@nx/nx-linux-x64-gnu": "18.3.0-canary.20240403-270788e",
|
87
|
+
"@nx/nx-linux-x64-musl": "18.3.0-canary.20240403-270788e",
|
88
|
+
"@nx/nx-win32-x64-msvc": "18.3.0-canary.20240403-270788e",
|
89
|
+
"@nx/nx-linux-arm64-gnu": "18.3.0-canary.20240403-270788e",
|
90
|
+
"@nx/nx-linux-arm64-musl": "18.3.0-canary.20240403-270788e",
|
91
|
+
"@nx/nx-linux-arm-gnueabihf": "18.3.0-canary.20240403-270788e",
|
92
|
+
"@nx/nx-win32-arm64-msvc": "18.3.0-canary.20240403-270788e",
|
93
|
+
"@nx/nx-freebsd-x64": "18.3.0-canary.20240403-270788e"
|
94
94
|
},
|
95
95
|
"nx-migrations": {
|
96
96
|
"migrations": "./migrations.json",
|
@@ -1,5 +1,3 @@
|
|
1
1
|
import { TouchedProjectLocator } from '../affected-project-graph-models';
|
2
|
-
import { NxJsonConfiguration } from '../../../config/nx-json';
|
3
2
|
export declare const getTouchedProjects: TouchedProjectLocator;
|
4
3
|
export declare const getImplicitlyTouchedProjects: TouchedProjectLocator;
|
5
|
-
export declare function extractGlobalFilesFromInputs(nxJson: NxJsonConfiguration): any[];
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
3
|
+
exports.getImplicitlyTouchedProjects = exports.getTouchedProjects = void 0;
|
4
4
|
const minimatch_1 = require("minimatch");
|
5
5
|
const find_project_for_path_1 = require("../../utils/find-project-for-path");
|
6
6
|
const getTouchedProjects = (touchedFiles, projectGraphNodes) => {
|
@@ -16,15 +16,12 @@ const getTouchedProjects = (touchedFiles, projectGraphNodes) => {
|
|
16
16
|
exports.getTouchedProjects = getTouchedProjects;
|
17
17
|
const getImplicitlyTouchedProjects = (fileChanges, projectGraphNodes, nxJson) => {
|
18
18
|
const implicits = {};
|
19
|
-
const globalFiles = [...extractGlobalFilesFromInputs(nxJson), 'nx.json'];
|
20
|
-
globalFiles.forEach((file) => {
|
21
|
-
implicits[file] = '*';
|
22
|
-
});
|
23
19
|
Object.values(projectGraphNodes || {}).forEach((node) => {
|
24
|
-
|
25
|
-
...
|
26
|
-
...
|
27
|
-
|
20
|
+
const namedInputs = {
|
21
|
+
...nxJson.namedInputs,
|
22
|
+
...node.data.namedInputs,
|
23
|
+
};
|
24
|
+
extractFilesFromTargetInputs(node.data.targets, namedInputs).forEach((input) => {
|
28
25
|
implicits[input] ??= [];
|
29
26
|
if (Array.isArray(implicits[input])) {
|
30
27
|
implicits[input].push(node.name);
|
@@ -48,33 +45,23 @@ const getImplicitlyTouchedProjects = (fileChanges, projectGraphNodes, nxJson) =>
|
|
48
45
|
return Array.from(touched);
|
49
46
|
};
|
50
47
|
exports.getImplicitlyTouchedProjects = getImplicitlyTouchedProjects;
|
51
|
-
function
|
52
|
-
const globalFiles = [];
|
53
|
-
globalFiles.push(...extractFilesFromNamedInputs(nxJson.namedInputs));
|
54
|
-
globalFiles.push(...extractFilesFromTargetInputs(nxJson.targetDefaults));
|
55
|
-
return globalFiles;
|
56
|
-
}
|
57
|
-
exports.extractGlobalFilesFromInputs = extractGlobalFilesFromInputs;
|
58
|
-
function extractFilesFromNamedInputs(namedInputs) {
|
59
|
-
const files = [];
|
60
|
-
for (const inputs of Object.values(namedInputs || {})) {
|
61
|
-
files.push(...extractFilesFromInputs(inputs));
|
62
|
-
}
|
63
|
-
return files;
|
64
|
-
}
|
65
|
-
function extractFilesFromTargetInputs(targets) {
|
48
|
+
function extractFilesFromTargetInputs(targets, namedInputs) {
|
66
49
|
const globalFiles = [];
|
67
50
|
for (const target of Object.values(targets || {})) {
|
68
51
|
if (target.inputs) {
|
69
|
-
globalFiles.push(...extractFilesFromInputs(target.inputs));
|
52
|
+
globalFiles.push(...extractFilesFromInputs(target.inputs, namedInputs));
|
70
53
|
}
|
71
54
|
}
|
72
55
|
return globalFiles;
|
73
56
|
}
|
74
|
-
function extractFilesFromInputs(inputs) {
|
57
|
+
function extractFilesFromInputs(inputs, namedInputs) {
|
75
58
|
const globalFiles = [];
|
76
59
|
for (const input of inputs) {
|
77
|
-
if (typeof input === 'string' && input
|
60
|
+
if (typeof input === 'string' && input in namedInputs) {
|
61
|
+
return extractFilesFromInputs(namedInputs[input], namedInputs);
|
62
|
+
}
|
63
|
+
else if (typeof input === 'string' &&
|
64
|
+
input.startsWith('{workspaceRoot}/')) {
|
78
65
|
globalFiles.push(input.substring('{workspaceRoot}/'.length));
|
79
66
|
}
|
80
67
|
else if (input.fileset && input.fileset.startsWith('{workspaceRoot}/')) {
|
@@ -3,9 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.readModulePackageJson = exports.readModulePackageJsonWithoutFallbacks = exports.readTargetsFromPackageJson = exports.buildTargetFromScript = exports.readNxMigrateConfig = exports.normalizePackageGroup = void 0;
|
4
4
|
const fs_1 = require("fs");
|
5
5
|
const path_1 = require("path");
|
6
|
+
const project_configuration_utils_1 = require("../project-graph/utils/project-configuration-utils");
|
6
7
|
const fileutils_1 = require("./fileutils");
|
7
8
|
const installation_directory_1 = require("./installation-directory");
|
8
|
-
const project_configuration_utils_1 = require("../project-graph/utils/project-configuration-utils");
|
9
9
|
function normalizePackageGroup(packageGroup) {
|
10
10
|
return Array.isArray(packageGroup)
|
11
11
|
? packageGroup.map((x) => typeof x === 'string' ? { package: x, version: '*' } : x)
|