@pnpm/deps.inspection.tree-builder 1100.0.2 → 1100.0.4

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/README.md CHANGED
@@ -1,9 +1,9 @@
1
- # @pnpm/reviewing.tree-builder
1
+ # @pnpm/deps.inspection.tree-builder
2
2
 
3
3
  > Creates a dependencies hierarchy for a symlinked \`node_modules\`
4
4
 
5
5
  <!--@shields('npm')-->
6
- [![npm version](https://img.shields.io/npm/v/tree-builder.svg)](https://www.npmjs.com/package/tree-builder)
6
+ [![npm version](https://img.shields.io/npm/v/tree-builder.svg)](https://npmx.dev/package/tree-builder)
7
7
  <!--/@-->
8
8
 
9
9
  A symlinked `node_modules` is created when installing using [pnpm](https://github.com/pnpm/pnpm).
@@ -11,7 +11,7 @@ A symlinked `node_modules` is created when installing using [pnpm](https://githu
11
11
  ## Installation
12
12
 
13
13
  ```
14
- pnpm add @pnpm/reviewing.tree-builder
14
+ pnpm add @pnpm/deps.inspection.tree-builder
15
15
  ```
16
16
 
17
17
  ## License
@@ -8,6 +8,7 @@ import { safeReadPackageJsonFromDir } from '@pnpm/pkg-manifest.reader';
8
8
  import { StoreIndex } from '@pnpm/store.index';
9
9
  import { DEPENDENCIES_FIELDS } from '@pnpm/types';
10
10
  import normalizePath from 'normalize-path';
11
+ import { pathAbsolute } from 'path-absolute';
11
12
  import { realpathMissing } from 'realpath-missing';
12
13
  import { resolveLinkTarget } from 'resolve-link-target';
13
14
  import { buildDependencyGraph } from './buildDependencyGraph.js';
@@ -16,7 +17,7 @@ export async function buildDependenciesTree(projectPaths, maybeOpts) {
16
17
  if (!maybeOpts?.lockfileDir) {
17
18
  throw new TypeError('opts.lockfileDir is required');
18
19
  }
19
- const modulesDir = await realpathMissing(path.join(maybeOpts.lockfileDir, maybeOpts.modulesDir ?? 'node_modules'));
20
+ const modulesDir = await realpathMissing(pathAbsolute(maybeOpts.modulesDir ?? 'node_modules', maybeOpts.lockfileDir));
20
21
  const modules = await readModulesManifest(modulesDir);
21
22
  const registries = normalizeRegistries({
22
23
  ...maybeOpts?.registries,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pnpm/deps.inspection.tree-builder",
3
- "version": "1100.0.2",
3
+ "version": "1100.0.4",
4
4
  "description": "Creates a dependencies hierarchy for a symlinked `node_modules`",
5
5
  "keywords": [
6
6
  "pnpm",
@@ -31,27 +31,29 @@
31
31
  "@pnpm/util.lex-comparator": "^3.0.2",
32
32
  "load-json-file": "^7.0.1",
33
33
  "normalize-path": "^3.0.0",
34
+ "path-absolute": "^2.0.0",
34
35
  "realpath-missing": "^2.0.0",
35
36
  "resolve-link-target": "^3.0.0",
36
37
  "semver": "^7.7.2",
37
- "@pnpm/config.normalize-registries": "1100.0.1",
38
- "@pnpm/config.matcher": "1100.0.0",
39
- "@pnpm/deps.path": "1100.0.1",
40
- "@pnpm/fs.read-modules-dir": "1100.0.0",
41
- "@pnpm/lockfile.detect-dep-types": "1100.0.2",
42
- "@pnpm/lockfile.fs": "1100.0.2",
43
- "@pnpm/installing.modules-yaml": "1100.0.1",
44
- "@pnpm/lockfile.utils": "1100.0.2",
45
- "@pnpm/pkg-manifest.reader": "1100.0.1",
46
- "@pnpm/store.cafs": "1100.0.2",
38
+ "@pnpm/config.normalize-registries": "1100.0.2",
39
+ "@pnpm/deps.path": "1100.0.2",
40
+ "@pnpm/fs.read-modules-dir": "1100.0.1",
41
+ "@pnpm/lockfile.detect-dep-types": "1100.0.3",
42
+ "@pnpm/lockfile.fs": "1100.0.4",
43
+ "@pnpm/lockfile.utils": "1100.0.4",
44
+ "@pnpm/config.matcher": "1100.0.1",
45
+ "@pnpm/installing.modules-yaml": "1100.0.2",
46
+ "@pnpm/store.cafs": "1100.1.1",
47
47
  "@pnpm/store.index": "1100.0.0",
48
- "@pnpm/types": "1101.0.0"
48
+ "@pnpm/types": "1101.0.0",
49
+ "@pnpm/pkg-manifest.reader": "1100.0.2"
49
50
  },
50
51
  "devDependencies": {
52
+ "@jest/globals": "30.3.0",
51
53
  "@types/normalize-path": "^3.0.2",
52
54
  "@types/semver": "7.7.1",
53
55
  "@pnpm/constants": "1100.0.0",
54
- "@pnpm/deps.inspection.tree-builder": "1100.0.2",
56
+ "@pnpm/deps.inspection.tree-builder": "1100.0.4",
55
57
  "@pnpm/test-fixtures": "1100.0.0"
56
58
  },
57
59
  "engines": {