@rushstack/lockfile-explorer 1.5.7 → 1.5.8

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 CHANGED
@@ -1,6 +1,27 @@
1
1
  {
2
2
  "name": "@rushstack/lockfile-explorer",
3
3
  "entries": [
4
+ {
5
+ "version": "1.5.8",
6
+ "tag": "@rushstack/lockfile-explorer_v1.5.8",
7
+ "date": "Mon, 12 Aug 2024 22:16:04 GMT",
8
+ "comments": {
9
+ "dependency": [
10
+ {
11
+ "comment": "Updating dependency \"@rushstack/node-core-library\" to `5.6.0`"
12
+ },
13
+ {
14
+ "comment": "Updating dependency \"@rushstack/terminal\" to `0.13.4`"
15
+ },
16
+ {
17
+ "comment": "Updating dependency \"@rushstack/ts-command-line\" to `4.22.5`"
18
+ },
19
+ {
20
+ "comment": "Updating dependency \"@rushstack/heft\" to `0.66.26`"
21
+ }
22
+ ]
23
+ }
24
+ },
4
25
  {
5
26
  "version": "1.5.7",
6
27
  "tag": "@rushstack/lockfile-explorer_v1.5.7",
package/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  # Change Log - @rushstack/lockfile-explorer
2
2
 
3
- This log was last generated on Fri, 02 Aug 2024 17:26:42 GMT and should not be manually modified.
3
+ This log was last generated on Mon, 12 Aug 2024 22:16:04 GMT and should not be manually modified.
4
+
5
+ ## 1.5.8
6
+ Mon, 12 Aug 2024 22:16:04 GMT
7
+
8
+ _Version update only_
4
9
 
5
10
  ## 1.5.7
6
11
  Fri, 02 Aug 2024 17:26:42 GMT
package/lib/utils/init.js CHANGED
@@ -25,7 +25,7 @@ const init = (options) => {
25
25
  console.log('Found a Rush workspace: ', rushJsonPath);
26
26
  const rushConfiguration = RushConfiguration_1.RushConfiguration.tryLoadFromDefaultLocation();
27
27
  const subspace = rushConfiguration.getSubspace(subspaceName);
28
- const workspaceFolder = subspace.getSubspaceTempFolder();
28
+ const workspaceFolder = subspace.getSubspaceTempFolderPath();
29
29
  const projectsByProjectFolder = new Map();
30
30
  for (const project of rushConfiguration.projects) {
31
31
  projectsByProjectFolder.set(project.projectFolder, {
@@ -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;AAElF,gDAAwB;AAExB,oCAAiF;AAE1E,MAAM,IAAI,GAAG,CAAC,OAKpB,EAAa,EAAE;IACd,MAAM,EAAE,2BAA2B,EAAE,UAAU,EAAE,SAAS,EAAE,YAAY,EAAE,GAAG,OAAO,CAAC;IACrF,MAAM,OAAO,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC;IAE9B,IAAI,QAA+B,CAAC;IACpC,IAAI,eAAe,GAAG,wBAAI,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC;IACrD,OAAO,eAAe,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;QACrC,sFAAsF;QACtF,MAAM,YAAY,GAAW,cAAI,CAAC,OAAO,CAAC,eAAe,EAAE,WAAW,CAAC,CAAC;QACxE,MAAM,YAAY,GAAW,cAAI,CAAC,OAAO,CAAC,eAAe,EAAE,gBAAgB,CAAC,CAAC;QAC7E,IAAI,8BAAU,CAAC,MAAM,CAAC,YAAY,CAAC,EAAE,CAAC;YACpC,OAAO,CAAC,GAAG,CAAC,0BAA0B,EAAE,YAAY,CAAC,CAAC;YAEtD,MAAM,iBAAiB,GAAsB,qCAAiB,CAAC,0BAA0B,EAAG,CAAC;YAC7F,MAAM,QAAQ,GAAa,iBAAiB,CAAC,WAAW,CAAC,YAAY,CAAC,CAAC;YACvE,MAAM,eAAe,GAAW,QAAQ,CAAC,qBAAqB,EAAE,CAAC;YAEjE,MAAM,uBAAuB,GAAqC,IAAI,GAAG,EAAE,CAAC;YAC5E,KAAK,MAAM,OAAO,IAAI,iBAAi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oft 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 { 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';\nimport path from 'path';\n\nimport { type IAppState, type IRushProjectDetails, ProjectType } from '../state';\n\nexport const init = (options: {\n lockfileExplorerProjectRoot: string;\n appVersion: string;\n debugMode: boolean;\n subspaceName: string;\n}): IAppState => {\n const { lockfileExplorerProjectRoot, appVersion, debugMode, subspaceName } = options;\n const currDir = process.cwd();\n\n let appState: IAppState | undefined;\n let currExploredDir = Path.convertToSlashes(currDir);\n while (currExploredDir.includes('/')) {\n // Look for a rush.json [rush project] or pnpm-lock.yaml file [regular pnpm workspace]\n const rushJsonPath: string = path.resolve(currExploredDir, 'rush.json');\n const pnpmLockPath: string = path.resolve(currExploredDir, 'pnpm-lock.yaml');\n if (FileSystem.exists(rushJsonPath)) {\n console.log('Found a Rush workspace: ', rushJsonPath);\n\n const rushConfiguration: RushConfiguration = RushConfiguration.tryLoadFromDefaultLocation()!;\n const subspace: Subspace = rushConfiguration.getSubspace(subspaceName);\n const workspaceFolder: string = subspace.getSubspaceTempFolder();\n\n const projectsByProjectFolder: Map<string, IRushProjectDetails> = new Map();\n for (const project of rushConfiguration.projects) {\n projectsByProjectFolder.set(project.projectFolder, {\n projectName: project.packageName,\n projectFolder: project.projectFolder\n });\n }\n\n appState = {\n currDir,\n appVersion,\n debugMode,\n lockfileExplorerProjectRoot,\n projectType: ProjectType.RUSH_PROJECT,\n pnpmLockfileLocation: path.resolve(workspaceFolder, 'pnpm-lock.yaml'),\n pnpmfileLocation: path.resolve(workspaceFolder, '.pnpmfile.cjs'),\n projectRoot: currExploredDir,\n rush: {\n rushJsonPath,\n projectsByProjectFolder\n }\n };\n break;\n } else if (FileSystem.exists(pnpmLockPath)) {\n appState = {\n currDir,\n appVersion,\n debugMode,\n lockfileExplorerProjectRoot,\n projectType: ProjectType.PNPM_WORKSPACE,\n pnpmLockfileLocation: path.resolve(currExploredDir, 'pnpm-lock.yaml'),\n pnpmfileLocation: path.resolve(currExploredDir, '.pnpmfile.cjs'),\n projectRoot: currExploredDir\n };\n\n break;\n }\n\n currExploredDir = currExploredDir.substring(0, currExploredDir.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"]}
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;AAElF,gDAAwB;AAExB,oCAAiF;AAE1E,MAAM,IAAI,GAAG,CAAC,OAKpB,EAAa,EAAE;IACd,MAAM,EAAE,2BAA2B,EAAE,UAAU,EAAE,SAAS,EAAE,YAAY,EAAE,GAAG,OAAO,CAAC;IACrF,MAAM,OAAO,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC;IAE9B,IAAI,QAA+B,CAAC;IACpC,IAAI,eAAe,GAAG,wBAAI,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC;IACrD,OAAO,eAAe,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;QACrC,sFAAsF;QACtF,MAAM,YAAY,GAAW,cAAI,CAAC,OAAO,CAAC,eAAe,EAAE,WAAW,CAAC,CAAC;QACxE,MAAM,YAAY,GAAW,cAAI,CAAC,OAAO,CAAC,eAAe,EAAE,gBAAgB,CAAC,CAAC;QAC7E,IAAI,8BAAU,CAAC,MAAM,CAAC,YAAY,CAAC,EAAE,CAAC;YACpC,OAAO,CAAC,GAAG,CAAC,0BAA0B,EAAE,YAAY,CAAC,CAAC;YAEtD,MAAM,iBAAiB,GAAsB,qCAAiB,CAAC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C,WAAW,CAAC,GAAG,CAAC,CAAC,CAAC;IACnF,CAAC;IAED,IAAI,CAAC,QAAQ,EAAE,CAAC;QACd,MAAM,IAAI,KAAK,CAAC,0CAA0C,CAAC,CAAC;IAC9D,CAAC;IAED,OAAO,QAAQ,CAAC;AAClB,CAAC,CAAC;AApEW,QAAA,IAAI,QAoEf","sourcesContent":["// Copyright (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 { 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';\nimport path from 'path';\n\nimport { type IAppState, type IRushProjectDetails, ProjectType } from '../state';\n\nexport const init = (options: {\n lockfileExplorerProjectRoot: string;\n appVersion: string;\n debugMode: boolean;\n subspaceName: string;\n}): IAppState => {\n const { lockfileExplorerProjectRoot, appVersion, debugMode, subspaceName } = options;\n const currDir = process.cwd();\n\n let appState: IAppState | undefined;\n let currExploredDir = Path.convertToSlashes(currDir);\n while (currExploredDir.includes('/')) {\n // Look for a rush.json [rush project] or pnpm-lock.yaml file [regular pnpm workspace]\n const rushJsonPath: string = path.resolve(currExploredDir, 'rush.json');\n const pnpmLockPath: string = path.resolve(currExploredDir, 'pnpm-lock.yaml');\n if (FileSystem.exists(rushJsonPath)) {\n console.log('Found a Rush workspace: ', rushJsonPath);\n\n const rushConfiguration: RushConfiguration = RushConfiguration.tryLoadFromDefaultLocation()!;\n const subspace: Subspace = rushConfiguration.getSubspace(subspaceName);\n const workspaceFolder: string = subspace.getSubspaceTempFolderPath();\n\n const projectsByProjectFolder: Map<string, IRushProjectDetails> = new Map();\n for (const project of rushConfiguration.projects) {\n projectsByProjectFolder.set(project.projectFolder, {\n projectName: project.packageName,\n projectFolder: project.projectFolder\n });\n }\n\n appState = {\n currDir,\n appVersion,\n debugMode,\n lockfileExplorerProjectRoot,\n projectType: ProjectType.RUSH_PROJECT,\n pnpmLockfileLocation: path.resolve(workspaceFolder, 'pnpm-lock.yaml'),\n pnpmfileLocation: path.resolve(workspaceFolder, '.pnpmfile.cjs'),\n projectRoot: currExploredDir,\n rush: {\n rushJsonPath,\n projectsByProjectFolder\n }\n };\n break;\n } else if (FileSystem.exists(pnpmLockPath)) {\n appState = {\n currDir,\n appVersion,\n debugMode,\n lockfileExplorerProjectRoot,\n projectType: ProjectType.PNPM_WORKSPACE,\n pnpmLockfileLocation: path.resolve(currExploredDir, 'pnpm-lock.yaml'),\n pnpmfileLocation: path.resolve(currExploredDir, '.pnpmfile.cjs'),\n projectRoot: currExploredDir\n };\n\n break;\n }\n\n currExploredDir = currExploredDir.substring(0, currExploredDir.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": "1.5.7",
3
+ "version": "1.5.8",
4
4
  "description": "Rush Lockfile Explorer: The UI for solving version conflicts quickly in a large monorepo",
5
5
  "keywords": [
6
6
  "conflict",
@@ -45,9 +45,9 @@
45
45
  "@types/update-notifier": "~6.0.1",
46
46
  "@pnpm/lockfile-types": "^5.1.5",
47
47
  "@types/semver": "7.5.0",
48
- "local-node-rig": "1.0.0",
49
48
  "@rushstack/lockfile-explorer-web": "0.0.0",
50
- "@rushstack/heft": "0.66.25"
49
+ "local-node-rig": "1.0.0",
50
+ "@rushstack/heft": "0.66.26"
51
51
  },
52
52
  "dependencies": {
53
53
  "cors": "~2.8.5",
@@ -57,11 +57,11 @@
57
57
  "update-notifier": "~5.1.0",
58
58
  "@pnpm/dependency-path": "~2.1.2",
59
59
  "semver": "~7.5.4",
60
- "@microsoft/rush-lib": "5.131.0",
61
- "@rushstack/terminal": "0.13.3",
62
- "@rushstack/ts-command-line": "4.22.4",
63
- "@rushstack/rush-sdk": "5.131.0",
64
- "@rushstack/node-core-library": "5.5.1"
60
+ "@microsoft/rush-lib": "5.131.4",
61
+ "@rushstack/node-core-library": "5.6.0",
62
+ "@rushstack/terminal": "0.13.4",
63
+ "@rushstack/ts-command-line": "4.22.5",
64
+ "@rushstack/rush-sdk": "5.131.4"
65
65
  },
66
66
  "scripts": {
67
67
  "build": "heft build --clean",