nx 22.3.0-canary.20251211-205daee → 22.3.0-canary.20251215-e864b6a
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 +11 -11
- package/src/adapter/ngcli-adapter.d.ts.map +1 -1
- package/src/adapter/ngcli-adapter.js +28 -3
- package/src/command-line/format/format.d.ts.map +1 -1
- package/src/command-line/format/format.js +20 -2
- package/src/command-line/init/implementation/angular/legacy-angular-versions.d.ts.map +1 -1
- package/src/command-line/init/implementation/angular/legacy-angular-versions.js +1 -0
- package/src/command-line/release/changelog.js +2 -0
- package/src/command-line/release/utils/shared.d.ts +3 -1
- package/src/command-line/release/utils/shared.d.ts.map +1 -1
- package/src/command-line/release/utils/shared.js +9 -0
- package/src/core/graph/main.js +1 -1
- package/src/native/index.d.ts +1 -1
- package/src/native/nx.wasm32-wasi.wasm +0 -0
- package/src/plugins/js/lock-file/pnpm-parser.d.ts.map +1 -1
- package/src/plugins/js/lock-file/pnpm-parser.js +4 -2
- package/src/plugins/js/lock-file/project-graph-pruning.js +3 -3
- package/src/plugins/js/project-graph/build-dependencies/build-dependencies.d.ts.map +1 -1
- package/src/plugins/js/project-graph/build-dependencies/build-dependencies.js +6 -6
- package/src/plugins/js/project-graph/build-dependencies/explicit-package-json-dependencies.d.ts.map +1 -1
- package/src/plugins/js/project-graph/build-dependencies/explicit-package-json-dependencies.js +24 -16
- package/src/plugins/js/utils/register.d.ts.map +1 -1
- package/src/plugins/js/utils/register.js +4 -1
- package/src/tasks-runner/cache.d.ts.map +1 -1
- package/src/tasks-runner/cache.js +1 -1
- package/src/tasks-runner/life-cycles/tui-summary-life-cycle.d.ts.map +1 -1
- package/src/tasks-runner/life-cycles/tui-summary-life-cycle.js +4 -2
- package/src/tasks-runner/run-command.js +1 -1
package/src/native/index.d.ts
CHANGED
|
@@ -69,7 +69,7 @@ export declare class ImportResult {
|
|
|
69
69
|
|
|
70
70
|
export declare class NxCache {
|
|
71
71
|
cacheDirectory: string
|
|
72
|
-
constructor(workspaceRoot: string, cachePath: string, dbConnection: ExternalObject<NxDbConnection>,
|
|
72
|
+
constructor(workspaceRoot: string, cachePath: string, dbConnection: ExternalObject<NxDbConnection>, maxCacheSize?: number | undefined | null)
|
|
73
73
|
get(hash: string): CachedResult | null
|
|
74
74
|
put(hash: string, terminalOutput: string, outputs: Array<string>, code: number): void
|
|
75
75
|
applyRemoteCacheResults(hash: string, result: CachedResult, outputs?: Array<string> | undefined | null): void
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pnpm-parser.d.ts","sourceRoot":"","sources":["../../../../../../../packages/nx/src/plugins/js/lock-file/pnpm-parser.ts"],"names":[],"mappings":"AAYA,OAAO,EAGL,qBAAqB,EACtB,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EACL,yBAAyB,EAE1B,MAAM,8CAA8C,CAAC;AACtD,OAAO,EAEL,YAAY,EACZ,wBAAwB,EACzB,MAAM,+BAA+B,CAAC;AAEvC,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAuB3E,wBAAgB,oBAAoB,CAClC,eAAe,EAAE,MAAM,EACvB,YAAY,EAAE,MAAM,GACnB;IACD,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,wBAAwB,CAAC,CAAC;IAChD,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,wBAAwB,CAAC,CAAC,CAAC;CACpD,CASA;AAED,wBAAgB,2BAA2B,CACzC,eAAe,EAAE,MAAM,EACvB,YAAY,EAAE,MAAM,EACpB,GAAG,EAAE,yBAAyB,EAC9B,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,wBAAwB,CAAC,CAAC,+BAUnD;
|
|
1
|
+
{"version":3,"file":"pnpm-parser.d.ts","sourceRoot":"","sources":["../../../../../../../packages/nx/src/plugins/js/lock-file/pnpm-parser.ts"],"names":[],"mappings":"AAYA,OAAO,EAGL,qBAAqB,EACtB,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EACL,yBAAyB,EAE1B,MAAM,8CAA8C,CAAC;AACtD,OAAO,EAEL,YAAY,EACZ,wBAAwB,EACzB,MAAM,+BAA+B,CAAC;AAEvC,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAuB3E,wBAAgB,oBAAoB,CAClC,eAAe,EAAE,MAAM,EACvB,YAAY,EAAE,MAAM,GACnB;IACD,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,wBAAwB,CAAC,CAAC;IAChD,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,wBAAwB,CAAC,CAAC,CAAC;CACpD,CASA;AAED,wBAAgB,2BAA2B,CACzC,eAAe,EAAE,MAAM,EACvB,YAAY,EAAE,MAAM,EACpB,GAAG,EAAE,yBAAyB,EAC9B,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,wBAAwB,CAAC,CAAC,+BAUnD;AAmXD,wBAAgB,qBAAqB,CACnC,KAAK,EAAE,YAAY,EACnB,mBAAmB,EAAE,MAAM,EAC3B,WAAW,EAAE,qBAAqB,EAClC,aAAa,EAAE,MAAM,GACpB,MAAM,CAuCR"}
|
|
@@ -271,12 +271,14 @@ function getHoistedVersion(packageName, isV5, hoistedKeysByPackage) {
|
|
|
271
271
|
}
|
|
272
272
|
function getDependencies(data, keyMap, isV5, ctx) {
|
|
273
273
|
const results = [];
|
|
274
|
-
Object.
|
|
274
|
+
Object.keys(data.packages).forEach((key) => {
|
|
275
|
+
const snapshot = data.packages[key];
|
|
275
276
|
const nodes = keyMap.get(key);
|
|
276
277
|
nodes.forEach((node) => {
|
|
277
278
|
[snapshot.dependencies, snapshot.optionalDependencies].forEach((section) => {
|
|
278
279
|
if (section) {
|
|
279
|
-
Object.
|
|
280
|
+
Object.keys(section).forEach((name) => {
|
|
281
|
+
const versionRange = section[name];
|
|
280
282
|
const version = parseBaseVersion(findVersion(versionRange, name, isV5), isV5);
|
|
281
283
|
const target = ctx.externalNodes[`npm:${name}@${version}`] ||
|
|
282
284
|
ctx.externalNodes[`npm:${name}`];
|
|
@@ -97,9 +97,9 @@ function addNodesAndDependencies(graph, packageJsonDeps, workspacePackages, buil
|
|
|
97
97
|
}
|
|
98
98
|
else if (workspacePackages.has(name)) {
|
|
99
99
|
// Workspace Node
|
|
100
|
-
const
|
|
101
|
-
if (
|
|
102
|
-
traverseWorkspaceNode(graph, builder,
|
|
100
|
+
const workspaceNode = workspacePackages.get(name);
|
|
101
|
+
if (workspaceNode) {
|
|
102
|
+
traverseWorkspaceNode(graph, builder, workspaceNode);
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
105
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build-dependencies.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/nx/src/plugins/js/project-graph/build-dependencies/build-dependencies.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,yBAAyB,EAAE,MAAM,mCAAmC,CAAC;AAC9E,OAAO,EAAE,yBAAyB,EAAE,MAAM,iDAAiD,CAAC;AAK5F,wBAAgB,yBAAyB,CACvC,cAAc,EAAE;IACd,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B,EACD,GAAG,EAAE,yBAAyB,GAC7B,yBAAyB,EAAE,
|
|
1
|
+
{"version":3,"file":"build-dependencies.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/nx/src/plugins/js/project-graph/build-dependencies/build-dependencies.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,yBAAyB,EAAE,MAAM,mCAAmC,CAAC;AAC9E,OAAO,EAAE,yBAAyB,EAAE,MAAM,iDAAiD,CAAC;AAK5F,wBAAgB,yBAAyB,CACvC,cAAc,EAAE;IACd,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B,EACD,GAAG,EAAE,yBAAyB,GAC7B,yBAAyB,EAAE,CA8C7B"}
|
|
@@ -11,14 +11,14 @@ function buildExplicitDependencies(jsPluginConfig, ctx) {
|
|
|
11
11
|
// TODO: TargetProjectLocator is a public API, so we can't change the shape of it
|
|
12
12
|
// We should eventually let it accept Record<string, ProjectConfiguration> s.t. we
|
|
13
13
|
// don't have to reshape the CreateDependenciesContext here.
|
|
14
|
-
const nodes =
|
|
15
|
-
|
|
16
|
-
{
|
|
14
|
+
const nodes = {};
|
|
15
|
+
Object.keys(ctx.projects).forEach((key) => {
|
|
16
|
+
nodes[key] = {
|
|
17
17
|
name: key,
|
|
18
18
|
type: null,
|
|
19
|
-
data:
|
|
20
|
-
}
|
|
21
|
-
|
|
19
|
+
data: ctx.projects[key],
|
|
20
|
+
};
|
|
21
|
+
});
|
|
22
22
|
const targetProjectLocator = new target_project_locator_1.TargetProjectLocator(nodes, ctx.externalNodes);
|
|
23
23
|
if (jsPluginConfig.analyzeSourceFiles === undefined ||
|
|
24
24
|
jsPluginConfig.analyzeSourceFiles === true) {
|
package/src/plugins/js/project-graph/build-dependencies/explicit-package-json-dependencies.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"explicit-package-json-dependencies.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/nx/src/plugins/js/project-graph/build-dependencies/explicit-package-json-dependencies.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,mCAAmC,CAAC;AACnF,OAAO,EACL,KAAK,yBAAyB,EAE/B,MAAM,iDAAiD,CAAC;
|
|
1
|
+
{"version":3,"file":"explicit-package-json-dependencies.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/nx/src/plugins/js/project-graph/build-dependencies/explicit-package-json-dependencies.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,mCAAmC,CAAC;AACnF,OAAO,EACL,KAAK,yBAAyB,EAE/B,MAAM,iDAAiD,CAAC;AAGzD,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAEhE,wBAAgB,oCAAoC,CAClD,GAAG,EAAE,yBAAyB,EAC9B,oBAAoB,EAAE,oBAAoB,GACzC,yBAAyB,EAAE,CAe7B"}
|
package/src/plugins/js/project-graph/build-dependencies/explicit-package-json-dependencies.js
CHANGED
|
@@ -5,25 +5,33 @@ const project_graph_1 = require("../../../../config/project-graph");
|
|
|
5
5
|
const file_utils_1 = require("../../../../project-graph/file-utils");
|
|
6
6
|
const project_graph_builder_1 = require("../../../../project-graph/project-graph-builder");
|
|
7
7
|
const json_1 = require("../../../../utils/json");
|
|
8
|
-
const path_1 = require("../../../../utils/path");
|
|
9
8
|
function buildExplicitPackageJsonDependencies(ctx, targetProjectLocator) {
|
|
10
9
|
const res = [];
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
10
|
+
const roots = {};
|
|
11
|
+
Object.values(ctx.projects).forEach((project) => {
|
|
12
|
+
roots[project.root] = true;
|
|
13
|
+
});
|
|
14
|
+
Object.keys(ctx.filesToProcess.projectFileMap).forEach((source) => {
|
|
15
|
+
Object.values(ctx.filesToProcess.projectFileMap[source]).forEach((f) => {
|
|
16
|
+
if (isPackageJsonAtProjectRoot(roots, f.file)) {
|
|
17
17
|
processPackageJson(source, f.file, ctx, targetProjectLocator, res);
|
|
18
18
|
}
|
|
19
|
-
}
|
|
20
|
-
}
|
|
19
|
+
});
|
|
20
|
+
});
|
|
21
21
|
return res;
|
|
22
22
|
}
|
|
23
|
+
function isPackageJsonAtProjectRoot(roots, fileName) {
|
|
24
|
+
if (!fileName.endsWith('package.json')) {
|
|
25
|
+
return false;
|
|
26
|
+
}
|
|
27
|
+
const filePath = fileName.slice(0, -13);
|
|
28
|
+
return !!roots[filePath];
|
|
29
|
+
}
|
|
23
30
|
function processPackageJson(sourceProject, packageJsonPath, ctx, targetProjectLocator, collectedDeps) {
|
|
24
31
|
try {
|
|
25
32
|
const deps = readDeps((0, json_1.parseJson)((0, file_utils_1.defaultFileRead)(packageJsonPath)));
|
|
26
|
-
|
|
33
|
+
Object.keys(deps).forEach((packageName) => {
|
|
34
|
+
const packageVersion = deps[packageName];
|
|
27
35
|
const localProject = targetProjectLocator.findDependencyInWorkspaceProjects(packageJsonPath, packageName, packageVersion);
|
|
28
36
|
if (localProject) {
|
|
29
37
|
// package.json refers to another project in the monorepo
|
|
@@ -35,11 +43,11 @@ function processPackageJson(sourceProject, packageJsonPath, ctx, targetProjectLo
|
|
|
35
43
|
};
|
|
36
44
|
(0, project_graph_builder_1.validateDependency)(dependency, ctx);
|
|
37
45
|
collectedDeps.push(dependency);
|
|
38
|
-
|
|
46
|
+
return;
|
|
39
47
|
}
|
|
40
48
|
const externalNodeName = targetProjectLocator.findNpmProjectFromImport(packageName, packageJsonPath);
|
|
41
49
|
if (!externalNodeName) {
|
|
42
|
-
|
|
50
|
+
return;
|
|
43
51
|
}
|
|
44
52
|
const dependency = {
|
|
45
53
|
source: sourceProject,
|
|
@@ -49,7 +57,7 @@ function processPackageJson(sourceProject, packageJsonPath, ctx, targetProjectLo
|
|
|
49
57
|
};
|
|
50
58
|
(0, project_graph_builder_1.validateDependency)(dependency, ctx);
|
|
51
59
|
collectedDeps.push(dependency);
|
|
52
|
-
}
|
|
60
|
+
});
|
|
53
61
|
}
|
|
54
62
|
catch (e) {
|
|
55
63
|
if (process.env.NX_VERBOSE_LOGGING === 'true') {
|
|
@@ -70,9 +78,9 @@ function readDeps(packageJson) {
|
|
|
70
78
|
'dependencies',
|
|
71
79
|
];
|
|
72
80
|
for (const type of depType) {
|
|
73
|
-
|
|
74
|
-
deps[depName] =
|
|
75
|
-
}
|
|
81
|
+
Object.keys(packageJson[type] || {}).forEach((depName) => {
|
|
82
|
+
deps[depName] = packageJson[type][depName];
|
|
83
|
+
});
|
|
76
84
|
}
|
|
77
85
|
return deps;
|
|
78
86
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"register.d.ts","sourceRoot":"","sources":["../../../../../../../packages/nx/src/plugins/js/utils/register.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAC/C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AA+ClD;;;;;;;;;GASG;AACH,wBAAgB,iBAAiB,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM,IAAI,CAAC;AACpE;;;;;;;;;;GAUG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,OAAE;AA6CxE,wBAAgB,gBAAgB,CAC9B,eAAe,EAAE,eAAe,GAC/B,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,OAAO,
|
|
1
|
+
{"version":3,"file":"register.d.ts","sourceRoot":"","sources":["../../../../../../../packages/nx/src/plugins/js/utils/register.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAC/C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AA+ClD;;;;;;;;;GASG;AACH,wBAAgB,iBAAiB,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM,IAAI,CAAC;AACpE;;;;;;;;;;GAUG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,OAAE;AA6CxE,wBAAgB,gBAAgB,CAC9B,eAAe,EAAE,eAAe,GAC/B,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,OAAO,CAajC;AAED,wBAAgB,mBAAmB,CACjC,eAAe,EAAE,eAAe,EAChC,aAAa,CAAC,EAAE,eAAe,EAC/B,YAAY,CAAC,EAAE,OAAO,GACrB,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,OAAO,CAwBjC;AAiFD,wBAAgB,aAAa,CAC3B,eAAe,EAAE,eAAe,EAChC,WAAW,CAAC,EAAE,OAAO,SALc,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,OAAO,CAiFnE;AAED;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAChC,eAAe,EAAE,eAAe,EAChC,WAAW,CAAC,EAAE,OAAO,GACpB,MAAM,IAAI,CAUZ;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,YAAY,KAAA,GAAG,MAAM,IAAI,CAuB9D;AA+ED;;;;GAIG;AACH,wBAAgB,wBAAwB,CAAC,eAAe,EAAE,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6CxE"}
|
|
@@ -88,7 +88,10 @@ function getSwcTranspiler(compilerOptions) {
|
|
|
88
88
|
// These are requires to prevent it from registering when it shouldn't
|
|
89
89
|
const register = require('@swc-node/register/register')
|
|
90
90
|
.register;
|
|
91
|
-
const cleanupFn = register(
|
|
91
|
+
const cleanupFn = register({
|
|
92
|
+
...compilerOptions,
|
|
93
|
+
baseUrl: compilerOptions.baseUrl ?? './',
|
|
94
|
+
});
|
|
92
95
|
return typeof cleanupFn === 'function' ? cleanupFn : () => { };
|
|
93
96
|
}
|
|
94
97
|
function getTsNodeTranspiler(compilerOptions, tsNodeOptions, preferTsNode) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cache.d.ts","sourceRoot":"","sources":["../../../../../packages/nx/src/tasks-runner/cache.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,yBAAyB,EACzB,WAAW,EAEZ,MAAM,wBAAwB,CAAC;AAKhC,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAW5C,OAAO,EAAE,mBAAmB,EAAc,MAAM,mBAAmB,CAAC;AAUpE,MAAM,MAAM,YAAY,GAAG;IACzB,cAAc,EAAE,MAAM,CA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,oBAAoB;YAOpB,cAAc;YAiBd,IAAI;YAiBJ,MAAM;YAYN,eAAe;YAwBf,wBAAwB;IAyBtC,OAAO,CAAC,cAAc;IAKtB,OAAO,CAAC,wBAAwB;CAKjC;AA0BD;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,mBAAmB,GAAG,MAAM,CAKvE;AAED;;;;;;;;GAQG;AACH,wBAAgB,iBAAiB,CAC/B,YAAY,EAAE,MAAM,GAAG,MAAM,GAC5B,MAAM,GAAG,SAAS,CAqCpB;AAED,wBAAgB,eAAe,CAAC,YAAY,EAAE,MAAM,EAAE,QAAQ,SAAI,GAAG,MAAM,CAS1E"}
|
|
@@ -56,7 +56,7 @@ class DbCache {
|
|
|
56
56
|
constructor(options) {
|
|
57
57
|
this.options = options;
|
|
58
58
|
this.nxJson = (0, nx_json_1.readNxJson)();
|
|
59
|
-
this.cache = new native_1.NxCache(workspace_root_1.workspaceRoot, cache_directory_1.cacheDir, (0, db_connection_1.getDbConnection)(),
|
|
59
|
+
this.cache = new native_1.NxCache(workspace_root_1.workspaceRoot, cache_directory_1.cacheDir, (0, db_connection_1.getDbConnection)(), resolveMaxCacheSize(this.nxJson));
|
|
60
60
|
this.isVerbose = process.env.NX_VERBOSE_LOGGING === 'true';
|
|
61
61
|
}
|
|
62
62
|
async init() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tui-summary-life-cycle.d.ts","sourceRoot":"","sources":["../../../../../../packages/nx/src/tasks-runner/life-cycles/tui-summary-life-cycle.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAE1D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAa/C,wBAAgB,8BAA8B,CAAC,EAC7C,YAAY,EACZ,KAAK,EACL,SAAS,EACT,IAAI,EACJ,SAAS,EACT,iBAAiB,EACjB,eAAe,EACf,0BAA0B,GAC3B,EAAE;IACD,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,KAAK,EAAE,IAAI,EAAE,CAAC;IACd,SAAS,EAAE,SAAS,CAAC;IACrB,IAAI,EAAE;QAAE,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;QAAC,aAAa,CAAC,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IACxE,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACnC,iBAAiB,EAAE,MAAM,CAAC;IAC1B,eAAe,EAAE,IAAI,EAAE,CAAC;IACxB,0BAA0B,EAAE,CAAC,KAAK,EAAE,IAAI,KAAK,IAAI,CAAC;CACnD;
|
|
1
|
+
{"version":3,"file":"tui-summary-life-cycle.d.ts","sourceRoot":"","sources":["../../../../../../packages/nx/src/tasks-runner/life-cycles/tui-summary-life-cycle.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAE1D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAa/C,wBAAgB,8BAA8B,CAAC,EAC7C,YAAY,EACZ,KAAK,EACL,SAAS,EACT,IAAI,EACJ,SAAS,EACT,iBAAiB,EACjB,eAAe,EACf,0BAA0B,GAC3B,EAAE;IACD,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,KAAK,EAAE,IAAI,EAAE,CAAC;IACd,SAAS,EAAE,SAAS,CAAC;IACrB,IAAI,EAAE;QAAE,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;QAAC,aAAa,CAAC,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IACxE,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACnC,iBAAiB,EAAE,MAAM,CAAC;IAC1B,eAAe,EAAE,IAAI,EAAE,CAAC;IACxB,0BAA0B,EAAE,CAAC,KAAK,EAAE,IAAI,KAAK,IAAI,CAAC;CACnD;eAyekC,SAAS;;EAC3C"}
|
|
@@ -42,8 +42,10 @@ function getTuiTerminalSummaryLifeCycle({ projectNames, tasks, taskGraph, args,
|
|
|
42
42
|
lifeCycle.printTaskTerminalOutput = (task, taskStatus, output) => {
|
|
43
43
|
tasksToTaskStatus[task.id] = taskStatus;
|
|
44
44
|
// Store the complete output for display in the summary
|
|
45
|
-
// This is called with the full output for cached
|
|
46
|
-
|
|
45
|
+
// This is called with the full output for cached tasks. For non-cached tasks,
|
|
46
|
+
// the output doesn't include the portion of the output that prints the command that was being ran.
|
|
47
|
+
if (output &&
|
|
48
|
+
!['failure', 'success'].includes(taskStatus)) {
|
|
47
49
|
tasksToTerminalOutputs[task.id] = output;
|
|
48
50
|
}
|
|
49
51
|
};
|
|
@@ -51,7 +51,7 @@ async function getTerminalOutputLifeCycle(initiatingProject, initiatingTasks, pr
|
|
|
51
51
|
delete overridesWithoutHidden['__overrides_unparsed__'];
|
|
52
52
|
const isRunOne = initiatingProject != null;
|
|
53
53
|
if (tasks.length === 1) {
|
|
54
|
-
process.env.NX_TUI
|
|
54
|
+
process.env.NX_TUI ??= 'false';
|
|
55
55
|
}
|
|
56
56
|
if ((0, is_tui_enabled_1.isTuiEnabled)()) {
|
|
57
57
|
const interceptedNxCloudLogs = [];
|