dependency-tree 11.4.1 → 11.4.2

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.
Files changed (3) hide show
  1. package/README.md +1 -1
  2. package/bin/cli.js +2 -0
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -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
package/bin/cli.js CHANGED
@@ -10,12 +10,14 @@ program
10
10
  .name(name)
11
11
  .description(description)
12
12
  .version(version)
13
+ .argument('<filename>', 'the path to file to examine')
13
14
  .usage('[options] <filename>')
14
15
  .option('-d, --directory <path>', 'location of files of supported filetypes')
15
16
  .option('-c, --require-config <path>', 'path to a requirejs config')
16
17
  .option('-w, --webpack-config <path>', 'path to a webpack config')
17
18
  .option('-t, --ts-config <path>', 'path to a typescript config')
18
19
  .option('--list-form', 'output the list form of the tree (one element per line)')
20
+ .showHelpAfterError()
19
21
  .parse();
20
22
 
21
23
  const cliOptions = program.opts();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dependency-tree",
3
- "version": "11.4.1",
3
+ "version": "11.4.2",
4
4
  "description": "Get the dependency tree of a module",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",