@rushstack/lockfile-explorer 1.8.1 → 2.0.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.
- package/CHANGELOG.json +17 -0
- package/CHANGELOG.md +12 -1
- package/build/lfx-shared/IJsonLfxGraph.d.ts +4 -3
- package/build/lfx-shared/IJsonLfxGraph.js.map +1 -1
- package/build/lfx-shared/LfxGraph.d.ts +49 -16
- package/build/lfx-shared/LfxGraph.js +5 -10
- package/build/lfx-shared/LfxGraph.js.map +1 -1
- package/build/lfx-shared/lfxGraphSerializer.js +8 -6
- package/build/lfx-shared/lfxGraphSerializer.js.map +1 -1
- package/dist/{app.22259b754540a899e03d.js → app.9d79482549580f813d48.js} +1 -1
- package/dist/index.html +1 -1
- package/dist/rush-themed-ui.js +1 -1
- package/lib/cli/explorer/ExplorerCommandLineParser.d.ts.map +1 -1
- package/lib/cli/explorer/ExplorerCommandLineParser.js +3 -3
- package/lib/cli/explorer/ExplorerCommandLineParser.js.map +1 -1
- package/lib/cli/lint/LintCommandLineParser.d.ts.map +1 -1
- package/lib/cli/lint/LintCommandLineParser.js +1 -1
- package/lib/cli/lint/LintCommandLineParser.js.map +1 -1
- package/lib/cli/lint/actions/CheckAction.d.ts.map +1 -1
- package/lib/cli/lint/actions/CheckAction.js +6 -6
- package/lib/cli/lint/actions/CheckAction.js.map +1 -1
- package/lib/cli/lint/actions/InitAction.d.ts.map +1 -1
- package/lib/cli/lint/actions/InitAction.js +3 -3
- package/lib/cli/lint/actions/InitAction.js.map +1 -1
- package/lib/graph/PnpmfileRunner.d.ts.map +1 -1
- package/lib/graph/PnpmfileRunner.js.map +1 -1
- package/lib/graph/lfxGraphLoader.d.ts.map +1 -1
- package/lib/graph/lfxGraphLoader.js +201 -114
- package/lib/graph/lfxGraphLoader.js.map +1 -1
- package/lib/graph/pnpmfileRunnerWorkerThread.d.ts.map +1 -1
- package/lib/graph/pnpmfileRunnerWorkerThread.js.map +1 -1
- package/lib/utils/init.d.ts.map +1 -1
- package/lib/utils/init.js +7 -7
- package/lib/utils/init.js.map +1 -1
- package/package.json +5 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pnpmfileRunnerWorkerThread.js","sourceRoot":"","sources":["../../src/graph/pnpmfileRunnerWorkerThread.ts"],"names":[],"mappings":";AAAA,4FAA4F;AAC5F,2DAA2D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAE3D,6DAA+E;AAC/E,gDAAkC;
|
|
1
|
+
{"version":3,"file":"pnpmfileRunnerWorkerThread.js","sourceRoot":"","sources":["../../src/graph/pnpmfileRunnerWorkerThread.ts"],"names":[],"mappings":";AAAA,4FAA4F;AAC5F,2DAA2D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAE3D,6DAA+E;AAC/E,gDAAkC;AA6BlC,YAAY;AAEZ,MAAM,EAAE,YAAY,EAAE,GAAG,gCAAU,CAAC;AACpC,MAAM,YAAY,GAAW,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;AAExD,IAAI,cAAc,GAAgC,SAAS,CAAC;AAC5D,IAAI,mBAAmB,GAAsB,SAAS,CAAC;AAEvD,IAAI,CAAC;IACH,cAAc,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;AACzC,CAAC;AAAC,OAAO,KAAK,EAAE,CAAC;IACf,mBAAmB,GAAG,KAAK,CAAC;AAC9B,CAAC;AAED,kDAAkD;AAClD,MAAM,gBAAgB,GAAuB,gCAAU,CAAC;AAExD,IAAI,CAAC,gBAAgB,EAAE,CAAC;IACtB,MAAM,IAAI,KAAK,CAAC,gCAAgC,CAAC,CAAC;AACpD,CAAC;AAED,gBAAgB,CAAC,EAAE,CAAC,SAAS,EAAE,KAAK,EAAE,OAAwB,EAAE,EAAE;IAChE,MAAM,EAAE,EAAE,EAAE,WAAW,EAAE,GAAG,OAAO,CAAC;IAEpC,IAAI,mBAAmB,EAAE,CAAC;QACxB,gBAAgB,CAAC,WAAW,CAAC;YAC3B,IAAI,EAAE,OAAO;YACb,EAAE;YACF,KAAK,EAAE,mBAAmB,CAAC,OAAO;SACH,CAAC,CAAC;QACnC,OAAO;IACT,CAAC;IAED,IAAI,CAAC;QACH,IAAI,CAAC,cAAc,IAAI,CAAC,cAAc,CAAC,KAAK,IAAI,OAAO,cAAc,CAAC,KAAK,CAAC,WAAW,KAAK,UAAU,EAAE,CAAC;YACvG,2BAA2B;YAC3B,gBAAgB,CAAC,WAAW,CAAC;gBAC3B,IAAI,EAAE,QAAQ;gBACd,EAAE;gBACF,MAAM,EAAE,WAAW;aACa,CAAC,CAAC;YACpC,OAAO;QACT,CAAC;QAED,MAAM,WAAW,GAAwB;YACvC,GAAG,EAAE,CAAC,UAAU,EAAE,EAAE,CAClB,gBAAgB,CAAC,WAAW,CAAC;gBAC3B,IAAI,EAAE,KAAK;gBACX,EAAE;gBACF,GAAG,EAAE,UAAU;aACc,CAAC;SACnC,CAAC;QAEF,MAAM,MAAM,GAAiB,MAAM,cAAc,CAAC,KAAK,CAAC,WAAW,CAAC,EAAE,GAAG,WAAW,EAAE,EAAE,WAAW,CAAC,CAAC;QAErG,gBAAgB,CAAC,WAAW,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAmC,CAAC,CAAC;IAChG,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC;QACX,gBAAgB,CAAC,WAAW,CAAC;YAC3B,IAAI,EAAE,OAAO;YACb,EAAE;YACF,KAAK,EAAG,CAAW,CAAC,OAAO;SACI,CAAC,CAAC;IACrC,CAAC;AACH,CAAC,CAAC,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 { parentPort, workerData, type MessagePort } from 'node:worker_threads';\nimport * as path from 'node:path';\n\nimport type { IPackageJson } from '@rushstack/node-core-library';\n\nimport type { IPnpmfileModule, IReadPackageContext } from './IPnpmfileModule';\n\nexport interface IRequestMessage {\n id: number;\n packageJson: IPackageJson;\n packageJsonFullPath: string;\n}\n\nexport interface IResponseMessageLog {\n kind: 'log';\n id: number;\n log: string;\n}\nexport interface IResponseMessageError {\n kind: 'error';\n id: number;\n error: string;\n}\nexport interface IResponseMessageReturn {\n kind: 'return';\n id: number;\n result?: unknown;\n}\nexport type ResponseMessage = IResponseMessageLog | IResponseMessageError | IResponseMessageReturn;\n\n// debugger;\n\nconst { pnpmfilePath } = workerData;\nconst resolvedPath: string = path.resolve(pnpmfilePath);\n\nlet pnpmfileModule: IPnpmfileModule | undefined = undefined;\nlet pnpmfileModuleError: Error | undefined = undefined;\n\ntry {\n pnpmfileModule = require(resolvedPath);\n} catch (error) {\n pnpmfileModuleError = error;\n}\n\n// eslint-disable-next-line @rushstack/no-new-null\nconst threadParentPort: null | MessagePort = parentPort;\n\nif (!threadParentPort) {\n throw new Error('Not running in a worker thread');\n}\n\nthreadParentPort.on('message', async (message: IRequestMessage) => {\n const { id, packageJson } = message;\n\n if (pnpmfileModuleError) {\n threadParentPort.postMessage({\n kind: 'error',\n id,\n error: pnpmfileModuleError.message\n } satisfies IResponseMessageError);\n return;\n }\n\n try {\n if (!pnpmfileModule || !pnpmfileModule.hooks || typeof pnpmfileModule.hooks.readPackage !== 'function') {\n // No transformation needed\n threadParentPort.postMessage({\n kind: 'return',\n id,\n result: packageJson\n } satisfies IResponseMessageReturn);\n return;\n }\n\n const pnpmContext: IReadPackageContext = {\n log: (logMessage) =>\n threadParentPort.postMessage({\n kind: 'log',\n id,\n log: logMessage\n } satisfies IResponseMessageLog)\n };\n\n const result: IPackageJson = await pnpmfileModule.hooks.readPackage({ ...packageJson }, pnpmContext);\n\n threadParentPort.postMessage({ kind: 'return', id, result } satisfies IResponseMessageReturn);\n } catch (e) {\n threadParentPort.postMessage({\n kind: 'error',\n id,\n error: (e as Error).message\n } satisfies IResponseMessageError);\n }\n});\n"]}
|
package/lib/utils/init.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../src/utils/init.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../src/utils/init.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAE1C,eAAO,MAAM,IAAI,GAAI,SAAS;IAC5B,2BAA2B,EAAE,MAAM,CAAC;IACpC,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,OAAO,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;CACtB,KAAG,IAAI,CAAC,SAAS,EAAE,OAAO,CA+E1B,CAAC"}
|
package/lib/utils/init.js
CHANGED
|
@@ -41,13 +41,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
41
41
|
exports.init = void 0;
|
|
42
42
|
// This function will read the current directory and try to figure out if it's a rush project or regular pnpm workspace
|
|
43
43
|
// Currently it will throw error if neither can be determined
|
|
44
|
+
const node_path_1 = __importDefault(require("node:path"));
|
|
44
45
|
const node_core_library_1 = require("@rushstack/node-core-library");
|
|
45
46
|
const RushConfiguration_1 = require("@microsoft/rush-lib/lib/api/RushConfiguration");
|
|
46
|
-
const path_1 = __importDefault(require("path"));
|
|
47
47
|
const lockfilePath = __importStar(require("../graph/lockfilePath"));
|
|
48
48
|
const init = (options) => {
|
|
49
49
|
const { lockfileExplorerProjectRoot, appVersion, debugMode, subspaceName } = options;
|
|
50
|
-
const currentWorkingDirectory =
|
|
50
|
+
const currentWorkingDirectory = node_path_1.default.resolve(process.cwd());
|
|
51
51
|
let appState;
|
|
52
52
|
let currentFolder = node_core_library_1.Path.convertToSlashes(currentWorkingDirectory);
|
|
53
53
|
while (currentFolder.includes('/')) {
|
|
@@ -59,11 +59,11 @@ const init = (options) => {
|
|
|
59
59
|
const rushConfiguration = RushConfiguration_1.RushConfiguration.loadFromConfigurationFile(rushJsonPath);
|
|
60
60
|
const subspace = rushConfiguration.getSubspace(subspaceName);
|
|
61
61
|
const commonTempFolder = subspace.getSubspaceTempFolderPath();
|
|
62
|
-
const pnpmLockfileAbsolutePath =
|
|
63
|
-
const relativeCommonTempFolder = node_core_library_1.Path.convertToSlashes(
|
|
62
|
+
const pnpmLockfileAbsolutePath = node_path_1.default.join(commonTempFolder, 'pnpm-lock.yaml');
|
|
63
|
+
const relativeCommonTempFolder = node_core_library_1.Path.convertToSlashes(node_path_1.default.relative(currentFolder, subspace.getSubspaceTempFolderPath()));
|
|
64
64
|
const pnpmLockfileRelativePath = lockfilePath.join(relativeCommonTempFolder, 'pnpm-lock.yaml');
|
|
65
65
|
const pnpmFileRelativePath = lockfilePath.join(relativeCommonTempFolder, '.pnpmfile.cjs');
|
|
66
|
-
const relativeCommonConfigFolder = node_core_library_1.Path.convertToSlashes(
|
|
66
|
+
const relativeCommonConfigFolder = node_core_library_1.Path.convertToSlashes(node_path_1.default.relative(currentFolder, subspace.getSubspaceConfigFolderPath()));
|
|
67
67
|
const rushPnpmFileRelativePath = lockfilePath.join(relativeCommonConfigFolder, '.pnpmfile.cjs');
|
|
68
68
|
appState = {
|
|
69
69
|
currentWorkingDirectory,
|
|
@@ -76,7 +76,7 @@ const init = (options) => {
|
|
|
76
76
|
lfxWorkspace: {
|
|
77
77
|
workspaceRootFullPath: currentFolder,
|
|
78
78
|
pnpmLockfilePath: node_core_library_1.Path.convertToSlashes(pnpmLockfileRelativePath),
|
|
79
|
-
pnpmLockfileFolder: node_core_library_1.Path.convertToSlashes(
|
|
79
|
+
pnpmLockfileFolder: node_core_library_1.Path.convertToSlashes(node_path_1.default.dirname(pnpmLockfileRelativePath)),
|
|
80
80
|
pnpmfilePath: node_core_library_1.Path.convertToSlashes(pnpmFileRelativePath),
|
|
81
81
|
rushConfig: {
|
|
82
82
|
rushVersion: rushConfiguration.rushConfigurationJson.rushVersion,
|
|
@@ -98,7 +98,7 @@ const init = (options) => {
|
|
|
98
98
|
projectRoot: currentFolder,
|
|
99
99
|
lfxWorkspace: {
|
|
100
100
|
workspaceRootFullPath: currentFolder,
|
|
101
|
-
pnpmLockfilePath: node_core_library_1.Path.convertToSlashes(
|
|
101
|
+
pnpmLockfilePath: node_core_library_1.Path.convertToSlashes(node_path_1.default.relative(currentFolder, pnpmLockPath)),
|
|
102
102
|
pnpmLockfileFolder: '',
|
|
103
103
|
pnpmfilePath: '.pnpmfile.cjs',
|
|
104
104
|
rushConfig: undefined
|
package/lib/utils/init.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"init.js","sourceRoot":"","sources":["../../src/utils/init.ts"],"names":[],"mappings":";AAAA,4FAA4F;AAC5F,2DAA2D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAE3D,uHAAuH;AACvH,6DAA6D;AAE7D,oEAAgE;AAChE,qFAAkF;
|
|
1
|
+
{"version":3,"file":"init.js","sourceRoot":"","sources":["../../src/utils/init.ts"],"names":[],"mappings":";AAAA,4FAA4F;AAC5F,2DAA2D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAE3D,uHAAuH;AACvH,6DAA6D;AAE7D,0DAA6B;AAE7B,oEAAgE;AAChE,qFAAkF;AAGlF,oEAAsD;AAG/C,MAAM,IAAI,GAAG,CAAC,OAKpB,EAA4B,EAAE;IAC7B,MAAM,EAAE,2BAA2B,EAAE,UAAU,EAAE,SAAS,EAAE,YAAY,EAAE,GAAG,OAAO,CAAC;IACrF,MAAM,uBAAuB,GAAW,mBAAI,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,CAAC;IAEpE,IAAI,QAA+B,CAAC;IACpC,IAAI,aAAa,GAAW,wBAAI,CAAC,gBAAgB,CAAC,uBAAuB,CAAC,CAAC;IAC3E,OAAO,aAAa,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;QACnC,sFAAsF;QACtF,MAAM,YAAY,GAAW,aAAa,GAAG,YAAY,CAAC;QAC1D,MA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c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.\n// See LICENSE in the project root for license information.\n\n// This function will read the current directory and try to figure out if it's a rush project or regular pnpm workspace\n// Currently it will throw error if neither can be determined\n\nimport path from 'node:path';\n\nimport { FileSystem, Path } from '@rushstack/node-core-library';\nimport { RushConfiguration } from '@microsoft/rush-lib/lib/api/RushConfiguration';\nimport type { Subspace } from '@microsoft/rush-lib/lib/api/Subspace';\n\nimport * as lockfilePath from '../graph/lockfilePath';\nimport type { IAppState } from '../state';\n\nexport const init = (options: {\n lockfileExplorerProjectRoot: string;\n appVersion: string;\n debugMode: boolean;\n subspaceName: string;\n}): Omit<IAppState, 'graph'> => {\n const { lockfileExplorerProjectRoot, appVersion, debugMode, subspaceName } = options;\n const currentWorkingDirectory: string = path.resolve(process.cwd());\n\n let appState: IAppState | undefined;\n let currentFolder: string = Path.convertToSlashes(currentWorkingDirectory);\n while (currentFolder.includes('/')) {\n // Look for a rush.json [rush project] or pnpm-lock.yaml file [regular pnpm workspace]\n const rushJsonPath: string = currentFolder + '/rush.json';\n const pnpmLockPath: string = currentFolder + '/pnpm-lock.yaml';\n if (FileSystem.exists(rushJsonPath)) {\n console.log('Found a Rush workspace: ', rushJsonPath);\n\n const rushConfiguration: RushConfiguration = RushConfiguration.loadFromConfigurationFile(rushJsonPath);\n const subspace: Subspace = rushConfiguration.getSubspace(subspaceName);\n const commonTempFolder: string = subspace.getSubspaceTempFolderPath();\n const pnpmLockfileAbsolutePath: string = path.join(commonTempFolder, 'pnpm-lock.yaml');\n\n const relativeCommonTempFolder: string = Path.convertToSlashes(\n path.relative(currentFolder, subspace.getSubspaceTempFolderPath())\n );\n const pnpmLockfileRelativePath: string = lockfilePath.join(relativeCommonTempFolder, 'pnpm-lock.yaml');\n const pnpmFileRelativePath: string = lockfilePath.join(relativeCommonTempFolder, '.pnpmfile.cjs');\n\n const relativeCommonConfigFolder: string = Path.convertToSlashes(\n path.relative(currentFolder, subspace.getSubspaceConfigFolderPath())\n );\n const rushPnpmFileRelativePath: string = lockfilePath.join(relativeCommonConfigFolder, '.pnpmfile.cjs');\n\n appState = {\n currentWorkingDirectory,\n appVersion,\n debugMode,\n lockfileExplorerProjectRoot,\n pnpmLockfileLocation: pnpmLockfileAbsolutePath,\n pnpmfileLocation: commonTempFolder + '/.pnpmfile.cjs',\n projectRoot: currentFolder,\n lfxWorkspace: {\n workspaceRootFullPath: currentFolder,\n pnpmLockfilePath: Path.convertToSlashes(pnpmLockfileRelativePath),\n pnpmLockfileFolder: Path.convertToSlashes(path.dirname(pnpmLockfileRelativePath)),\n pnpmfilePath: Path.convertToSlashes(pnpmFileRelativePath),\n rushConfig: {\n rushVersion: rushConfiguration.rushConfigurationJson.rushVersion,\n subspaceName: subspaceName ?? '',\n rushPnpmfilePath: rushPnpmFileRelativePath\n }\n }\n };\n break;\n } else if (FileSystem.exists(pnpmLockPath)) {\n appState = {\n currentWorkingDirectory,\n appVersion,\n debugMode,\n lockfileExplorerProjectRoot,\n pnpmLockfileLocation: currentFolder + '/pnpm-lock.yaml',\n pnpmfileLocation: currentFolder + '/.pnpmfile.cjs',\n projectRoot: currentFolder,\n lfxWorkspace: {\n workspaceRootFullPath: currentFolder,\n pnpmLockfilePath: Path.convertToSlashes(path.relative(currentFolder, pnpmLockPath)),\n pnpmLockfileFolder: '',\n pnpmfilePath: '.pnpmfile.cjs',\n rushConfig: undefined\n }\n };\n\n break;\n }\n\n currentFolder = currentFolder.substring(0, currentFolder.lastIndexOf('/'));\n }\n\n if (!appState) {\n throw new Error('Could not find a Rush or PNPM workspace!');\n }\n\n return appState;\n};\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rushstack/lockfile-explorer",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "Rush Lockfile Explorer: The UI for solving version conflicts quickly in a large monorepo",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"conflict",
|
|
@@ -60,11 +60,11 @@
|
|
|
60
60
|
"open": "~8.4.0",
|
|
61
61
|
"semver": "~7.5.4",
|
|
62
62
|
"update-notifier": "~5.1.0",
|
|
63
|
-
"@
|
|
64
|
-
"@rushstack/rush-sdk": "5.
|
|
63
|
+
"@rushstack/node-core-library": "5.15.1",
|
|
64
|
+
"@rushstack/rush-sdk": "5.159.0",
|
|
65
|
+
"@microsoft/rush-lib": "5.159.0",
|
|
65
66
|
"@rushstack/terminal": "0.18.0",
|
|
66
|
-
"@rushstack/ts-command-line": "5.0.5"
|
|
67
|
-
"@rushstack/node-core-library": "5.15.1"
|
|
67
|
+
"@rushstack/ts-command-line": "5.0.5"
|
|
68
68
|
},
|
|
69
69
|
"scripts": {
|
|
70
70
|
"build": "heft build --clean",
|