nx 16.7.3 → 16.7.4
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nx",
|
|
3
|
-
"version": "16.7.
|
|
3
|
+
"version": "16.7.4",
|
|
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": {
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
},
|
|
33
33
|
"homepage": "https://nx.dev",
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@nrwl/tao": "16.7.
|
|
35
|
+
"@nrwl/tao": "16.7.4",
|
|
36
36
|
"@parcel/watcher": "2.0.4",
|
|
37
37
|
"@yarnpkg/lockfile": "^1.1.0",
|
|
38
38
|
"@yarnpkg/parsers": "3.0.0-rc.46",
|
|
@@ -81,16 +81,16 @@
|
|
|
81
81
|
}
|
|
82
82
|
},
|
|
83
83
|
"optionalDependencies": {
|
|
84
|
-
"@nx/nx-darwin-arm64": "16.7.
|
|
85
|
-
"@nx/nx-darwin-x64": "16.7.
|
|
86
|
-
"@nx/nx-freebsd-x64": "16.7.
|
|
87
|
-
"@nx/nx-linux-arm-gnueabihf": "16.7.
|
|
88
|
-
"@nx/nx-linux-arm64-gnu": "16.7.
|
|
89
|
-
"@nx/nx-linux-arm64-musl": "16.7.
|
|
90
|
-
"@nx/nx-linux-x64-gnu": "16.7.
|
|
91
|
-
"@nx/nx-linux-x64-musl": "16.7.
|
|
92
|
-
"@nx/nx-win32-arm64-msvc": "16.7.
|
|
93
|
-
"@nx/nx-win32-x64-msvc": "16.7.
|
|
84
|
+
"@nx/nx-darwin-arm64": "16.7.4",
|
|
85
|
+
"@nx/nx-darwin-x64": "16.7.4",
|
|
86
|
+
"@nx/nx-freebsd-x64": "16.7.4",
|
|
87
|
+
"@nx/nx-linux-arm-gnueabihf": "16.7.4",
|
|
88
|
+
"@nx/nx-linux-arm64-gnu": "16.7.4",
|
|
89
|
+
"@nx/nx-linux-arm64-musl": "16.7.4",
|
|
90
|
+
"@nx/nx-linux-x64-gnu": "16.7.4",
|
|
91
|
+
"@nx/nx-linux-x64-musl": "16.7.4",
|
|
92
|
+
"@nx/nx-win32-arm64-msvc": "16.7.4",
|
|
93
|
+
"@nx/nx-win32-x64-msvc": "16.7.4"
|
|
94
94
|
},
|
|
95
95
|
"nx-migrations": {
|
|
96
96
|
"migrations": "./migrations.json",
|
|
@@ -177,5 +177,5 @@
|
|
|
177
177
|
},
|
|
178
178
|
"main": "./bin/nx.js",
|
|
179
179
|
"type": "commonjs",
|
|
180
|
-
"gitHead": "
|
|
180
|
+
"gitHead": "5d73f6e0f2c6d4dfb2e9d45519d591c338bb5c37"
|
|
181
181
|
}
|
|
@@ -5,17 +5,19 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const child_process_1 = require("child_process");
|
|
6
6
|
const path = require("path");
|
|
7
7
|
const command_line_utils_1 = require("../../utils/command-line-utils");
|
|
8
|
+
const ignore_1 = require("../../utils/ignore");
|
|
8
9
|
const fileutils_1 = require("../../utils/fileutils");
|
|
9
10
|
const file_utils_1 = require("../../project-graph/file-utils");
|
|
10
11
|
const prettier = require("prettier");
|
|
11
12
|
const object_sort_1 = require("../../utils/object-sort");
|
|
13
|
+
const package_json_1 = require("../../utils/package-json");
|
|
12
14
|
const typescript_1 = require("../../plugins/js/utils/typescript");
|
|
13
15
|
const project_graph_1 = require("../../project-graph/project-graph");
|
|
14
16
|
const affected_project_graph_1 = require("../../project-graph/affected/affected-project-graph");
|
|
15
17
|
const configuration_1 = require("../../config/configuration");
|
|
16
18
|
const chunkify_1 = require("../../utils/chunkify");
|
|
17
19
|
const all_file_data_1 = require("../../utils/all-file-data");
|
|
18
|
-
const PRETTIER_PATH =
|
|
20
|
+
const PRETTIER_PATH = getPrettierPath();
|
|
19
21
|
function format(command, args) {
|
|
20
22
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
21
23
|
const { nxArgs } = (0, command_line_utils_1.splitArgsIntoNxArgsAndOverrides)(args, 'affected', { printWarnings: false }, (0, configuration_1.readNxJson)());
|
|
@@ -62,9 +64,11 @@ function getPatterns(args) {
|
|
|
62
64
|
// which allows it to be considered for calculating "patterns"
|
|
63
65
|
.concat('.swcrc');
|
|
64
66
|
const patterns = p.files.filter((f) => (0, fileutils_1.fileExists)(f) && supportedExtensions.includes(path.extname(f)));
|
|
67
|
+
// exclude patterns in .nxignore or .gitignore
|
|
68
|
+
const nonIgnoredPatterns = (0, ignore_1.getIgnoreObject)().filter(patterns);
|
|
65
69
|
return args.libsAndApps
|
|
66
|
-
? yield getPatternsFromApps(
|
|
67
|
-
:
|
|
70
|
+
? yield getPatternsFromApps(nonIgnoredPatterns, yield (0, all_file_data_1.allFileData)(), graph)
|
|
71
|
+
: nonIgnoredPatterns;
|
|
68
72
|
}
|
|
69
73
|
catch (_a) {
|
|
70
74
|
return allFilesPattern;
|
|
@@ -143,3 +147,7 @@ function sortTsConfig() {
|
|
|
143
147
|
// catch noop
|
|
144
148
|
}
|
|
145
149
|
}
|
|
150
|
+
function getPrettierPath() {
|
|
151
|
+
const { bin } = (0, package_json_1.readModulePackageJson)('prettier').packageJson;
|
|
152
|
+
return require.resolve(path.join('prettier', bin));
|
|
153
|
+
}
|
package/src/plugins/js/index.js
CHANGED
|
@@ -23,16 +23,12 @@ const processProjectGraph = (graph, context) => tslib_1.__awaiter(void 0, void 0
|
|
|
23
23
|
let parsedLockFile;
|
|
24
24
|
if (lockFileNeedsReprocessing(lockHash)) {
|
|
25
25
|
parsedLockFile = (0, lock_file_1.parseLockFile)();
|
|
26
|
-
|
|
27
|
-
writeLastProcessedLockfileHash(lockHash, parsedLockFile);
|
|
28
|
-
}
|
|
26
|
+
writeLastProcessedLockfileHash(lockHash, parsedLockFile);
|
|
29
27
|
}
|
|
30
28
|
else {
|
|
31
29
|
parsedLockFile = readParsedLockFile();
|
|
32
30
|
}
|
|
33
|
-
|
|
34
|
-
builder.mergeProjectGraph(parsedLockFile);
|
|
35
|
-
}
|
|
31
|
+
builder.mergeProjectGraph(parsedLockFile);
|
|
36
32
|
}
|
|
37
33
|
}
|
|
38
34
|
perf_hooks_1.performance.mark('build typescript dependencies - start');
|
|
@@ -287,8 +287,7 @@ function mapSnapshots(dependencies, nodes, packageJson, isBerry) {
|
|
|
287
287
|
if (isBerry && key.includes('@patch:') && key.includes('#')) {
|
|
288
288
|
normalizedKey = key
|
|
289
289
|
.slice(0, key.indexOf('#'))
|
|
290
|
-
.replace(`@patch:${packageName}@`, '@npm:')
|
|
291
|
-
.replace(/:.*$/u, ':' + snapshotKey.version);
|
|
290
|
+
.replace(`@patch:${packageName}@`, '@npm:');
|
|
292
291
|
}
|
|
293
292
|
if (!existingKeys.get(packageName) ||
|
|
294
293
|
!existingKeys.get(packageName).has(normalizedKey)) {
|