You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@
10
10
npm install dependency-tree
11
11
```
12
12
13
-
* Works for JS (AMD, CommonJS, ES6 modules), Typescript, and CSS preprocessors (CSS (PostCSS), Sass, Stylus, and Less); basically, any module type supported by [Precinct](https://github.com/dependents/node-precinct).
13
+
* Works for JS (AMD, CommonJS, ES6 modules), TypeScript, and CSS preprocessors (CSS (PostCSS), Sass, Stylus, and Less); basically, any module type supported by [Precinct](https://github.com/dependents/node-precinct).
14
14
- For CommonJS modules, 3rd party dependencies (npm installed dependencies) are included in the tree by default
15
15
- Dependency path resolutions are handled by [filing-cabinet](https://github.com/dependents/node-filing-cabinet)
16
16
- Supports RequireJS and Webpack loaders
@@ -50,6 +50,7 @@ const list = dependencyTree.toList({
50
50
*`requireConfig`: path to a requirejs config for AMD modules (allows for the result of aliased module paths)
51
51
*`webpackConfig`: path to a webpack config for aliased modules
52
52
*`tsConfig`: path to a typescript config (or a preloaded object representing the typescript config)
53
+
*`tsConfigPath`: a (virtual) path to typescript config file when `tsConfig` option is given as an object, not a string. Needed to calculate [Path Mapping](https://www.typescriptlang.org/docs/handbook/module-resolution.html#path-mapping). If not given when `tsConfig` is an object, **Path Mapping** is ignored. This is not needed when `tsConfig` is given as a path string.
53
54
*`nodeModulesConfig`: config for resolving entry file for node_modules
54
55
*`visited`: object used for avoiding redundant subtree generations via memoization.
55
56
*`nonExistent`: array used for storing the list of partial paths that do not exist
0 commit comments