1
+ diff --git a/node_modules/nx/.DS_Store b/node_modules/nx/.DS_Store
2
+ new file mode 100644
3
+ index 0000000..5008ddf
4
+ Binary files /dev/null and b/node_modules/nx/.DS_Store differ
5
+ diff --git a/node_modules/nx/bin/nx-cloud.js b/node_modules/nx/bin/nx-cloud.js
6
+ old mode 100755
7
+ new mode 100644
1
8
diff --git a/node_modules/nx/src/command-line/release/changelog.js b/node_modules/nx/src/command-line/release/changelog.js
2
- index 13e2e34..5dc0610 100644
9
+ index 8200613..1505b5e 100644
3
10
--- a/node_modules/nx/src/command-line/release/changelog.js
4
11
+++ b/node_modules/nx/src/command-line/release/changelog.js
5
- @@ -310 ,6 +310 ,7 @@ async function releaseChangelog(args ) {
6
- }
7
- if (!commits) {
8
- commits = await getCommits(fromRef, toSHA);
9
- + commits = commits.filter((c) => c.affectedFiles.find((f) => f.startsWith(project.data.root)));
10
- }
11
- const { fileMap } = await (0, file_map_utils_1.createFileMapUsingProjectGraph)(projectGraph);
12
- const fileToProjectMap = createFileToProjectMap(fileMap.projectFileMap);
12
+ @@ -335 ,6 +335 ,7 @@ function createAPI(overrideReleaseConfig ) {
13
+ }
14
+ if (!commits) {
15
+ commits = await getCommits(fromRef, toSHA);
16
+ + commits = commits.filter((c) => c.affectedFiles.find((f) => f.startsWith(project.data.root)));
17
+ }
18
+ const { fileMap } = await (0, file_map_utils_1.createFileMapUsingProjectGraph)(projectGraph);
19
+ const fileToProjectMap = createFileToProjectMap(fileMap.projectFileMap);
13
20
diff --git a/node_modules/nx/src/command-line/release/utils/git.js b/node_modules/nx/src/command-line/release/utils/git.js
14
- index c5c7d90..bb882ad 100644
21
+ index 4beeea0..1c8a2af 100644
15
22
--- a/node_modules/nx/src/command-line/release/utils/git.js
16
23
+++ b/node_modules/nx/src/command-line/release/utils/git.js
17
- @@ -281 ,7 +281 ,8 @@ function parseConventionalCommitsMessage(message) {
18
- exports.parseConventionalCommitsMessage = parseConventionalCommitsMessage;
24
+ @@ -283 ,7 +283 ,8 @@ function parseConventionalCommitsMessage(message) {
25
+ }
19
26
// https://www.conventionalcommits.org/en/v1.0.0/
20
27
// https://regex101.com/r/FSfNvA/1
21
28
- const ConventionalCommitRegex = /(?<type>[a-z]+)(\((?<scope>.+)\))?(?<breaking>!)?: (?<description>.+)/i;
@@ -25,10 +32,10 @@ index c5c7d90..bb882ad 100644
25
32
const PullRequestRE = /\([ a-z]*(#\d+)\s*\)/gm;
26
33
const IssueRE = /(#\d+)/gm;
27
34
diff --git a/node_modules/nx/src/command-line/release/utils/shared.js b/node_modules/nx/src/command-line/release/utils/shared.js
28
- index e08aff8..de3cdc7 100644
35
+ index 0cfae24..7ba3b15 100644
29
36
--- a/node_modules/nx/src/command-line/release/utils/shared.js
30
37
+++ b/node_modules/nx/src/command-line/release/utils/shared.js
31
- @@ -209,8 +209,9 @@ async function getCommitsRelevantToProjects(projectGraph, commits, projects) {
38
+ @@ -213,7 +213,8 @@ async function getCommitsRelevantToProjects(projectGraph, commits, projects) {
32
39
* - touch project files which are contained within the list of projects directly
33
40
* - touch non-project files and the commit is not scoped
34
41
*/
@@ -40,42 +47,39 @@ index e08aff8..de3cdc7 100644
40
47
+ // fileMap.nonProjectFiles.some((nonProjectFile) => nonProjectFile.file === f))));
41
48
+ return commits.filter((c) => c.affectedFiles.some((f) => filesInReleaseGroup.has(f)));
42
49
}
43
- exports.getCommitsRelevantToProjects = getCommitsRelevantToProjects;
44
50
diff --git a/node_modules/nx/src/generators/utils/json.js b/node_modules/nx/src/generators/utils/json.js
45
- index 7db40ce..5e69931 100644
51
+ index a59bc2c..a8387f4 100644
46
52
--- a/node_modules/nx/src/generators/utils/json.js
47
53
+++ b/node_modules/nx/src/generators/utils/json.js
48
- @@ -1 ,6 +1 ,8 @@
49
- "use strict" ;
50
- Object.defineProperty( exports, "__esModule", { value: true }) ;
51
- exports.updateJson = exports.writeJson = exports.readJson = void 0 ;
54
+ @@ -3 ,6 +3 ,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
55
+ exports.readJson = readJson ;
56
+ exports.writeJson = writeJson ;
57
+ exports.updateJson = updateJson ;
52
58
+ let detectIndent_1;
53
59
+ (async () => detectIndent_1 = ((await import('detect-indent')).default))();
54
60
const json_1 = require("../../utils/json");
55
61
/**
56
62
* Reads a json file, removes all comments and parses JSON.
57
- @@ -30 ,7 +32,10 @@ exports. readJson = readJson;
63
+ @@ -31 ,7 +33,9 @@ function readJson(tree, path, options) {
58
64
* @param options Optional JSON Serialize Options
59
65
*/
60
66
function writeJson(tree, path, value, options) {
61
67
- const serialized = (0, json_1.serializeJson)(value, options);
62
68
+ // const serialized = (0, json_1.serializeJson)(value, options);
63
- + // tree.write(path, `${serialized}\n`);
64
69
+ const indent = options?.indent ?? detectIndent_1(tree.read(path, 'utf-8')).indent;
65
70
+ const serialized = (0, json_1.serializeJson)(value, { ...options, indent });
66
71
tree.write(path, `${serialized}\n`);
67
72
}
68
- exports.writeJson = writeJson;
73
+ /**
69
74
diff --git a/node_modules/nx/src/utils/json.js b/node_modules/nx/src/utils/json.js
70
- index 9ea1345..7b1be5b 100644
75
+ index 2ace40e..c415390 100644
71
76
--- a/node_modules/nx/src/utils/json.js
72
77
+++ b/node_modules/nx/src/utils/json.js
73
- @@ -57,6 +57,7 @@ function formatParseError(input, parseError) {
78
+ @@ -58,5 +58,6 @@ function formatParseError(input, parseError) {
74
79
* @returns the formatted JSON representation of the object
75
80
*/
76
81
function serializeJson(input, options) {
77
82
- return JSON.stringify(input, null, options?.spaces ?? 2);
78
83
+ // return JSON.stringify(input, null, options?.spaces ?? 2);
79
84
+ return JSON.stringify(input, null, options?.indent ?? 2);
80
85
}
81
- exports.serializeJson = serializeJson;
0 commit comments