@rushstack/rush-buildxl-graph-plugin 5.159.0 → 5.160.0

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.
@@ -1 +1 @@
1
- {"version":3,"file":"dropGraph.d.ts","sourceRoot":"","sources":["../src/dropGraph.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,wBAAwB,EAAE,OAAO,EAAE,SAAS,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAO3G,MAAM,WAAW,iBAAiB;IAChC,UAAU,EAAE,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,OAAO,EAAE,wBAAwB,CAAC;IAClC,aAAa,EAAE,MAAM,CAAC;IACtB,iBAAiB,EAAE,iBAAiB,CAAC;IACrC,MAAM,EAAE,OAAO,CAAC;CACjB;AAID,wBAAsB,cAAc,CAAC,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,OAAO,CAAC,CAqDjF"}
1
+ {"version":3,"file":"dropGraph.d.ts","sourceRoot":"","sources":["../src/dropGraph.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,wBAAwB,EAAE,OAAO,EAAE,SAAS,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAO3G,MAAM,WAAW,iBAAiB;IAChC,UAAU,EAAE,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,OAAO,EAAE,wBAAwB,CAAC;IAClC,aAAa,EAAE,MAAM,CAAC;IACtB,iBAAiB,EAAE,iBAAiB,CAAC;IACrC,MAAM,EAAE,OAAO,CAAC;CACjB;AAID,wBAAsB,cAAc,CAAC,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,OAAO,CAAC,CAqDjF"}
package/lib/dropGraph.js CHANGED
@@ -6,7 +6,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
6
6
  };
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
8
  exports.dropGraphAsync = dropGraphAsync;
9
- const path_1 = __importDefault(require("path"));
9
+ const node_path_1 = __importDefault(require("node:path"));
10
10
  const node_core_library_1 = require("@rushstack/node-core-library");
11
11
  const GraphProcessor_1 = require("./GraphProcessor");
12
12
  const debugGraphFiltering_1 = require("./debugGraphFiltering");
@@ -38,7 +38,7 @@ async function dropGraphAsync(options) {
38
38
  OperationMap: graphOut,
39
39
  ICreateOperationsContext: filterFn(context)
40
40
  };
41
- const debugPathOut = `${path_1.default.dirname(dropGraphPath)}/debug-${path_1.default.basename(dropGraphPath)}`;
41
+ const debugPathOut = `${node_path_1.default.dirname(dropGraphPath)}/debug-${node_path_1.default.basename(dropGraphPath)}`;
42
42
  await node_core_library_1.JsonFile.saveAsync(debugOutput, debugPathOut, { ensureFolderExists: true });
43
43
  }
44
44
  }
@@ -1 +1 @@
1
- {"version":3,"file":"dropGraph.js","sourceRoot":"","sources":["../src/dropGraph.ts"],"names":[],"mappings":";AAAA,4FAA4F;AAC5F,2DAA2D;;;;;AAoB3D,wCAqDC;AAvED,gDAAwB;AAExB,oEAAwD;AAGxD,qDAAmE;AACnE,+DAAqF;AAUrF,MAAM,mCAAmC,GAA6B,wBAAwB,CAAC;AAExF,KAAK,UAAU,cAAc,CAAC,OAA0B;IAC7D,MAAM,EACJ,UAAU,EACV,OAAO,EACP,aAAa,EACb,iBAAiB,EAAE,EAAE,gBAAgB,EAAE,EACvC,MAAM,EACP,GAAG,OAAO,CAAC;IACZ,IAAI,OAAO,CAAC,GAAG,CAAC,mCAAmC,CAAC,EAAE,CAAC;QACrD,IAAI,QAA+D,CAAC;QACpE,MAAM,UAAU,GAAuB,OAAO,CAAC,GAAG,CAAC,mCAAmC,CAAC,CAAC;QACxF,QAAQ,OAAO,CAAC,GAAG,CAAC,sBAAsB,EAAE,CAAC;YAC3C,KAAK,MAAM,CAAC,CAAC,CAAC;gBACZ,QAAQ,GAAG,4CAAsB,CAAC;gBAClC,MAAM;YACR,CAAC;YAED,KAAK,MAAM,CAAC,CAAC,CAAC;gBACZ,QAAQ,GAAG,0CAAoB,CAAC;gBAChC,MAAM;YACR,CAAC;YAED,OAAO,CAAC,CAAC,CAAC;gBACR,MAAM,IAAI,KAAK,CAAC,qBAAqB,mCAAmC,KAAK,UAAU,EAAE,CAAC,CAAC;YAC7F,CAAC;QACH,CAAC;QAED,IAAI,QAAQ,EAAE,CAAC;YACb,MAAM,QAAQ,GAAc,EAAE,CAAC;YAC/B,KAAK,MAAM,SAAS,IAAI,UAAU,CAAC,IAAI,EAAE,EAAE,CAAC;gBAC1C,QAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC,CAAC;YACrC,CAAC;YAED,MAAM,WAAW,GAAY;gBAC3B,YAAY,EAAE,QAAQ;gBACtB,wBAAwB,EAAE,QAAQ,CAAC,OAAO,CAAC;aAC5C,CAAC;YACF,MAAM,YAAY,GAAW,GAAG,cAAI,CAAC,OAAO,CAAC,aAAa,CAAC,UAAU,cAAI,CAAC,QAAQ,CAAC,aAAa,CAAC,EAAE,CAAC;YACpG,MAAM,4BAAQ,CAAC,SAAS,CAAC,WAAW,EAAE,YAAY,EAAE,EAAE,kBAAkB,EAAE,IAAI,EAAE,CAAC,CAAC;QACpF,CAAC;IACH,CAAC;IAED,MAAM,cAAc,GAAmB,IAAI,+BAAc,CAAC,MAAM,CAAC,CAAC;IAClE,MAAM,KAAK,GAAiB,cAAc,CAAC,iBAAiB,CAAC,UAAU,CAAC,CAAC;IACzE,MAAM,YAAY,GAAsB;QACtC,KAAK;QACL,YAAY,EAAE;YACZ,gBAAgB;SACjB;KACF,CAAC;IAEF,MAAM,4BAAQ,CAAC,SAAS,CAAC,YAAY,EAAE,aAAa,EAAE,EAAE,kBAAkB,EAAE,IAAI,EAAE,CAAC,CAAC;IACpF,OAAO,cAAc,CAAC,aAAa,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;AAC1D,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.\n// See LICENSE in the project root for license information.\n\nimport path from 'path';\nimport type { ICreateOperationsContext, ILogger, Operation, RushConfiguration } from '@rushstack/rush-sdk';\nimport { JsonFile } from '@rushstack/node-core-library';\n\nimport type { IBuildXLRushGraph } from './DropBuildGraphPlugin';\nimport { type IGraphNode, GraphProcessor } from './GraphProcessor';\nimport { filterObjectForDebug, filterObjectForTesting } from './debugGraphFiltering';\n\nexport interface IDropGraphOptions {\n operations: Set<Operation>;\n context: ICreateOperationsContext;\n dropGraphPath: string;\n rushConfiguration: RushConfiguration;\n logger: ILogger;\n}\n\nconst DEBUG_RUSH_BUILD_GRAPH_ENV_VAR_NAME: 'DEBUG_RUSH_BUILD_GRAPH' = 'DEBUG_RUSH_BUILD_GRAPH';\n\nexport async function dropGraphAsync(options: IDropGraphOptions): Promise<boolean> {\n const {\n operations,\n context,\n dropGraphPath,\n rushConfiguration: { commonTempFolder },\n logger\n } = options;\n if (process.env[DEBUG_RUSH_BUILD_GRAPH_ENV_VAR_NAME]) {\n let filterFn: ((obj: object, depth?: number) => object) | undefined;\n const debugValue: string | undefined = process.env[DEBUG_RUSH_BUILD_GRAPH_ENV_VAR_NAME];\n switch (process.env.DEBUG_RUSH_BUILD_GRAPH) {\n case 'test': {\n filterFn = filterObjectForTesting;\n break;\n }\n\n case 'full': {\n filterFn = filterObjectForDebug;\n break;\n }\n\n default: {\n throw new Error(`Invalid value for ${DEBUG_RUSH_BUILD_GRAPH_ENV_VAR_NAME}: ${debugValue}`);\n }\n }\n\n if (filterFn) {\n const graphOut: unknown[] = [];\n for (const operation of operations.keys()) {\n graphOut.push(filterFn(operation));\n }\n\n const debugOutput: unknown = {\n OperationMap: graphOut,\n ICreateOperationsContext: filterFn(context)\n };\n const debugPathOut: string = `${path.dirname(dropGraphPath)}/debug-${path.basename(dropGraphPath)}`;\n await JsonFile.saveAsync(debugOutput, debugPathOut, { ensureFolderExists: true });\n }\n }\n\n const graphProcessor: GraphProcessor = new GraphProcessor(logger);\n const nodes: IGraphNode[] = graphProcessor.processOperations(operations);\n const buildXLGraph: IBuildXLRushGraph = {\n nodes,\n repoSettings: {\n commonTempFolder\n }\n };\n\n await JsonFile.saveAsync(buildXLGraph, dropGraphPath, { ensureFolderExists: true });\n return graphProcessor.validateGraph(buildXLGraph.nodes);\n}\n"]}
1
+ {"version":3,"file":"dropGraph.js","sourceRoot":"","sources":["../src/dropGraph.ts"],"names":[],"mappings":";AAAA,4FAA4F;AAC5F,2DAA2D;;;;;AAqB3D,wCAqDC;AAxED,0DAA6B;AAG7B,oEAAwD;AAGxD,qDAAmE;AACnE,+DAAqF;AAUrF,MAAM,mCAAmC,GAA6B,wBAAwB,CAAC;AAExF,KAAK,UAAU,cAAc,CAAC,OAA0B;IAC7D,MAAM,EACJ,UAAU,EACV,OAAO,EACP,aAAa,EACb,iBAAiB,EAAE,EAAE,gBAAgB,EAAE,EACvC,MAAM,EACP,GAAG,OAAO,CAAC;IACZ,IAAI,OAAO,CAAC,GAAG,CAAC,mCAAmC,CAAC,EAAE,CAAC;QACrD,IAAI,QAA+D,CAAC;QACpE,MAAM,UAAU,GAAuB,OAAO,CAAC,GAAG,CAAC,mCAAmC,CAAC,CAAC;QACxF,QAAQ,OAAO,CAAC,GAAG,CAAC,sBAAsB,EAAE,CAAC;YAC3C,KAAK,MAAM,CAAC,CAAC,CAAC;gBACZ,QAAQ,GAAG,4CAAsB,CAAC;gBAClC,MAAM;YACR,CAAC;YAED,KAAK,MAAM,CAAC,CAAC,CAAC;gBACZ,QAAQ,GAAG,0CAAoB,CAAC;gBAChC,MAAM;YACR,CAAC;YAED,OAAO,CAAC,CAAC,CAAC;gBACR,MAAM,IAAI,KAAK,CAAC,qBAAqB,mCAAmC,KAAK,UAAU,EAAE,CAAC,CAAC;YAC7F,CAAC;QACH,CAAC;QAED,IAAI,QAAQ,EAAE,CAAC;YACb,MAAM,QAAQ,GAAc,EAAE,CAAC;YAC/B,KAAK,MAAM,SAAS,IAAI,UAAU,CAAC,IAAI,EAAE,EAAE,CAAC;gBAC1C,QAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC,CAAC;YACrC,CAAC;YAED,MAAM,WAAW,GAAY;gBAC3B,YAAY,EAAE,QAAQ;gBACtB,wBAAwB,EAAE,QAAQ,CAAC,OAAO,CAAC;aAC5C,CAAC;YACF,MAAM,YAAY,GAAW,GAAG,mBAAI,CAAC,OAAO,CAAC,aAAa,CAAC,UAAU,mBAAI,CAAC,QAAQ,CAAC,aAAa,CAAC,EAAE,CAAC;YACpG,MAAM,4BAAQ,CAAC,SAAS,CAAC,WAAW,EAAE,YAAY,EAAE,EAAE,kBAAkB,EAAE,IAAI,EAAE,CAAC,CAAC;QACpF,CAAC;IACH,CAAC;IAED,MAAM,cAAc,GAAmB,IAAI,+BAAc,CAAC,MAAM,CAAC,CAAC;IAClE,MAAM,KAAK,GAAiB,cAAc,CAAC,iBAAiB,CAAC,UAAU,CAAC,CAAC;IACzE,MAAM,YAAY,GAAsB;QACtC,KAAK;QACL,YAAY,EAAE;YACZ,gBAAgB;SACjB;KACF,CAAC;IAEF,MAAM,4BAAQ,CAAC,SAAS,CAAC,YAAY,EAAE,aAAa,EAAE,EAAE,kBAAkB,EAAE,IAAI,EAAE,CAAC,CAAC;IACpF,OAAO,cAAc,CAAC,aAAa,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;AAC1D,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.\n// See LICENSE in the project root for license information.\n\nimport path from 'node:path';\n\nimport type { ICreateOperationsContext, ILogger, Operation, RushConfiguration } from '@rushstack/rush-sdk';\nimport { JsonFile } from '@rushstack/node-core-library';\n\nimport type { IBuildXLRushGraph } from './DropBuildGraphPlugin';\nimport { type IGraphNode, GraphProcessor } from './GraphProcessor';\nimport { filterObjectForDebug, filterObjectForTesting } from './debugGraphFiltering';\n\nexport interface IDropGraphOptions {\n operations: Set<Operation>;\n context: ICreateOperationsContext;\n dropGraphPath: string;\n rushConfiguration: RushConfiguration;\n logger: ILogger;\n}\n\nconst DEBUG_RUSH_BUILD_GRAPH_ENV_VAR_NAME: 'DEBUG_RUSH_BUILD_GRAPH' = 'DEBUG_RUSH_BUILD_GRAPH';\n\nexport async function dropGraphAsync(options: IDropGraphOptions): Promise<boolean> {\n const {\n operations,\n context,\n dropGraphPath,\n rushConfiguration: { commonTempFolder },\n logger\n } = options;\n if (process.env[DEBUG_RUSH_BUILD_GRAPH_ENV_VAR_NAME]) {\n let filterFn: ((obj: object, depth?: number) => object) | undefined;\n const debugValue: string | undefined = process.env[DEBUG_RUSH_BUILD_GRAPH_ENV_VAR_NAME];\n switch (process.env.DEBUG_RUSH_BUILD_GRAPH) {\n case 'test': {\n filterFn = filterObjectForTesting;\n break;\n }\n\n case 'full': {\n filterFn = filterObjectForDebug;\n break;\n }\n\n default: {\n throw new Error(`Invalid value for ${DEBUG_RUSH_BUILD_GRAPH_ENV_VAR_NAME}: ${debugValue}`);\n }\n }\n\n if (filterFn) {\n const graphOut: unknown[] = [];\n for (const operation of operations.keys()) {\n graphOut.push(filterFn(operation));\n }\n\n const debugOutput: unknown = {\n OperationMap: graphOut,\n ICreateOperationsContext: filterFn(context)\n };\n const debugPathOut: string = `${path.dirname(dropGraphPath)}/debug-${path.basename(dropGraphPath)}`;\n await JsonFile.saveAsync(debugOutput, debugPathOut, { ensureFolderExists: true });\n }\n }\n\n const graphProcessor: GraphProcessor = new GraphProcessor(logger);\n const nodes: IGraphNode[] = graphProcessor.processOperations(operations);\n const buildXLGraph: IBuildXLRushGraph = {\n nodes,\n repoSettings: {\n commonTempFolder\n }\n };\n\n await JsonFile.saveAsync(buildXLGraph, dropGraphPath, { ensureFolderExists: true });\n return graphProcessor.validateGraph(buildXLGraph.nodes);\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rushstack/rush-buildxl-graph-plugin",
3
- "version": "5.159.0",
3
+ "version": "5.160.0",
4
4
  "description": "Rush plugin for generating a BuildXL graph.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -12,16 +12,16 @@
12
12
  "types": "lib/index.d.ts",
13
13
  "license": "MIT",
14
14
  "dependencies": {
15
- "@rushstack/node-core-library": "5.15.1",
16
- "@rushstack/rush-sdk": "5.159.0",
17
- "@rushstack/ts-command-line": "5.0.5",
18
- "@rushstack/terminal": "0.18.0"
15
+ "@rushstack/rush-sdk": "5.160.0",
16
+ "@rushstack/terminal": "0.19.0",
17
+ "@rushstack/ts-command-line": "5.1.0",
18
+ "@rushstack/node-core-library": "5.16.0"
19
19
  },
20
20
  "devDependencies": {
21
21
  "eslint": "~9.25.1",
22
- "@rushstack/heft": "1.0.0",
23
- "local-node-rig": "1.0.0",
24
- "@microsoft/rush-lib": "5.159.0"
22
+ "@microsoft/rush-lib": "5.160.0",
23
+ "@rushstack/heft": "1.1.0",
24
+ "local-node-rig": "1.0.0"
25
25
  },
26
26
  "scripts": {
27
27
  "build": "heft build --clean",