rev-dep 2.3.1 → 2.4.0-beta.1

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 (2) hide show
  1. package/Readme.md +52 -38
  2. package/package.json +4 -4
package/Readme.md CHANGED
@@ -12,7 +12,7 @@
12
12
  <p align="center">
13
13
  Dependency analysis and optimization toolkit for modern JavaScript and TypeScript projects.
14
14
  <br>
15
- Trace imports, find unused code, clean dependencies — all from a blazing-fast CLI.
15
+ Trace imports, identify circular dependencies, find unused code, clean node modules — all from a blazing-fast CLI.
16
16
  </p>
17
17
 
18
18
  ---
@@ -328,12 +328,14 @@ rev-dep circular --ignore-types-imports
328
328
  #### Options
329
329
 
330
330
  ```
331
- -c, --cwd string Working directory for the command (default "$PWD")
332
- -h, --help help for circular
333
- -t, --ignore-type-imports Exclude type imports from the analysis
334
- --package-json string Path to package.json (default: ./package.json)
335
- --tsconfig-json string Path to tsconfig.json (default: ./tsconfig.json)
336
- -v, --verbose Show warnings and verbose output
331
+ --condition-names strings List of conditions for package.json imports resolution (e.g. node, imports, default)
332
+ -c, --cwd string Working directory for the command (default "$PWD")
333
+ --follow-monorepo-packages Enable resolution of imports from monorepo workspace packages
334
+ -h, --help help for circular
335
+ -t, --ignore-type-imports Exclude type imports from the analysis
336
+ --package-json string Path to package.json (default: ./package.json)
337
+ --tsconfig-json string Path to tsconfig.json (default: ./tsconfig.json)
338
+ -v, --verbose Show warnings and verbose output
337
339
  ```
338
340
 
339
341
 
@@ -359,17 +361,19 @@ rev-dep entry-points --print-deps-count
359
361
  #### Options
360
362
 
361
363
  ```
362
- -n, --count Only display the number of entry points found
363
- -c, --cwd string Working directory for the command (default "$PWD")
364
- --graph-exclude strings Exclude files matching these glob patterns from analysis
365
- -h, --help help for entry-points
366
- -t, --ignore-type-imports Exclude type imports from the analysis
367
- --package-json string Path to package.json (default: ./package.json)
368
- --print-deps-count Show the number of dependencies for each entry point
369
- --result-exclude strings Exclude files matching these glob patterns from results
370
- --result-include strings Only include files matching these glob patterns in results
371
- --tsconfig-json string Path to tsconfig.json (default: ./tsconfig.json)
372
- -v, --verbose Show warnings and verbose output
364
+ --condition-names strings List of conditions for package.json imports resolution (e.g. node, imports, default)
365
+ -n, --count Only display the number of entry points found
366
+ -c, --cwd string Working directory for the command (default "$PWD")
367
+ --follow-monorepo-packages Enable resolution of imports from monorepo workspace packages
368
+ --graph-exclude strings Exclude files matching these glob patterns from analysis
369
+ -h, --help help for entry-points
370
+ -t, --ignore-type-imports Exclude type imports from the analysis
371
+ --package-json string Path to package.json (default: ./package.json)
372
+ --print-deps-count Show the number of dependencies for each entry point
373
+ --result-exclude strings Exclude files matching these glob patterns from results
374
+ --result-include strings Only include files matching these glob patterns in results
375
+ --tsconfig-json string Path to tsconfig.json (default: ./tsconfig.json)
376
+ -v, --verbose Show warnings and verbose output
373
377
  ```
374
378
 
375
379
 
@@ -395,14 +399,16 @@ rev-dep files --entry-point src/index.ts
395
399
  #### Options
396
400
 
397
401
  ```
398
- -n, --count Only display the count of files in the dependency tree
399
- -c, --cwd string Working directory for the command (default "$PWD")
400
- -p, --entry-point string Entry point file to analyze (required)
401
- -h, --help help for files
402
- -t, --ignore-type-imports Exclude type imports from the analysis
403
- --package-json string Path to package.json (default: ./package.json)
404
- --tsconfig-json string Path to tsconfig.json (default: ./tsconfig.json)
405
- -v, --verbose Show warnings and verbose output
402
+ --condition-names strings List of conditions for package.json imports resolution (e.g. node, imports, default)
403
+ -n, --count Only display the count of files in the dependency tree
404
+ -c, --cwd string Working directory for the command (default "$PWD")
405
+ -p, --entry-point string Entry point file to analyze (required)
406
+ --follow-monorepo-packages Enable resolution of imports from monorepo workspace packages
407
+ -h, --help help for files
408
+ -t, --ignore-type-imports Exclude type imports from the analysis
409
+ --package-json string Path to package.json (default: ./package.json)
410
+ --tsconfig-json string Path to tsconfig.json (default: ./tsconfig.json)
411
+ -v, --verbose Show warnings and verbose output
406
412
  ```
407
413
 
408
414
 
@@ -591,12 +597,14 @@ rev-dep node-modules missing --entry-points=src/main.ts
591
597
  #### Options
592
598
 
593
599
  ```
600
+ --condition-names strings List of conditions for package.json imports resolution (e.g. node, imports, default)
594
601
  -n, --count Only display the count of modules
595
602
  -c, --cwd string Working directory for the command (default "$PWD")
596
603
  -p, --entry-points strings Entry point file(s) to start analysis from (default: auto-detected)
597
604
  -e, --exclude-modules strings list of modules to exclude from the output
598
605
  -b, --files-with-binaries strings Additional files to search for binary usages. Use paths relative to cwd
599
606
  -m, --files-with-node-modules strings Additional files to search for module imports. Use paths relative to cwd
607
+ --follow-monorepo-packages Enable resolution of imports from monorepo workspace packages
600
608
  --group-by-file Organize output by project file path
601
609
  --group-by-module Organize output by npm package name
602
610
  -h, --help help for missing
@@ -632,12 +640,14 @@ rev-dep node-modules unused --exclude-modules=@types/*
632
640
  #### Options
633
641
 
634
642
  ```
643
+ --condition-names strings List of conditions for package.json imports resolution (e.g. node, imports, default)
635
644
  -n, --count Only display the count of modules
636
645
  -c, --cwd string Working directory for the command (default "$PWD")
637
646
  -p, --entry-points strings Entry point file(s) to start analysis from (default: auto-detected)
638
647
  -e, --exclude-modules strings list of modules to exclude from the output
639
648
  -b, --files-with-binaries strings Additional files to search for binary usages. Use paths relative to cwd
640
649
  -m, --files-with-node-modules strings Additional files to search for module imports. Use paths relative to cwd
650
+ --follow-monorepo-packages Enable resolution of imports from monorepo workspace packages
641
651
  -h, --help help for unused
642
652
  -t, --ignore-type-imports Exclude type imports from the analysis
643
653
  -i, --include-modules strings list of modules to include in the output
@@ -671,12 +681,14 @@ rev-dep node-modules used -p src/index.ts --group-by-module
671
681
  #### Options
672
682
 
673
683
  ```
684
+ --condition-names strings List of conditions for package.json imports resolution (e.g. node, imports, default)
674
685
  -n, --count Only display the count of modules
675
686
  -c, --cwd string Working directory for the command (default "$PWD")
676
687
  -p, --entry-points strings Entry point file(s) to start analysis from (default: auto-detected)
677
688
  -e, --exclude-modules strings list of modules to exclude from the output
678
689
  -b, --files-with-binaries strings Additional files to search for binary usages. Use paths relative to cwd
679
690
  -m, --files-with-node-modules strings Additional files to search for module imports. Use paths relative to cwd
691
+ --follow-monorepo-packages Enable resolution of imports from monorepo workspace packages
680
692
  --group-by-file Organize output by project file path
681
693
  --group-by-module Organize output by npm package name
682
694
  -h, --help help for used
@@ -711,17 +723,19 @@ rev-dep resolve -p src/index.ts -f src/utils/helpers.ts
711
723
  #### Options
712
724
 
713
725
  ```
714
- -a, --all Show all possible resolution paths, not just the first one
715
- --compact-summary Display a compact summary of found paths
716
- -c, --cwd string Working directory for the command (default "$PWD")
717
- -p, --entry-points strings Entry point file(s) to start analysis from (default: auto-detected)
718
- -f, --file string Target file to check for dependencies
719
- --graph-exclude strings Glob patterns to exclude files from dependency analysis
720
- -h, --help help for resolve
721
- -t, --ignore-type-imports Exclude type imports from the analysis
722
- --package-json string Path to package.json (default: ./package.json)
723
- --tsconfig-json string Path to tsconfig.json (default: ./tsconfig.json)
724
- -v, --verbose Show warnings and verbose output
726
+ -a, --all Show all possible resolution paths, not just the first one
727
+ --compact-summary Display a compact summary of found paths
728
+ --condition-names strings List of conditions for package.json imports resolution (e.g. node, imports, default)
729
+ -c, --cwd string Working directory for the command (default "$PWD")
730
+ -p, --entry-points strings Entry point file(s) to start analysis from (default: auto-detected)
731
+ -f, --file string Target file to check for dependencies
732
+ --follow-monorepo-packages Enable resolution of imports from monorepo workspace packages
733
+ --graph-exclude strings Glob patterns to exclude files from dependency analysis
734
+ -h, --help help for resolve
735
+ -t, --ignore-type-imports Exclude type imports from the analysis
736
+ --package-json string Path to package.json (default: ./package.json)
737
+ --tsconfig-json string Path to tsconfig.json (default: ./tsconfig.json)
738
+ -v, --verbose Show warnings and verbose output
725
739
  ```
726
740
 
727
741
 
@@ -743,7 +757,7 @@ Benchmark performed with `hyperfine` using 8 runs per test and 4 warm up runs, t
743
757
  | 🥇 [rev-dep](https://github.com/jayu/rev-dep) | 2.0.0 | `rev-dep circular` | 397 ms |
744
758
  | 🥈 [dpdm-fast](https://github.com/SunSince90/dpdm-fast) | 1.0.14 | `dpdm --no-tree --no-progress --no-warning` + list of directories with source code | 4960 ms |
745
759
  | 🥉 [dpdm](https://github.com/acrazing/dpdm) | 3.14.0 | `dpdm --no-warning` + list of directories with source code | 5030 ms |
746
- | [skott](https://github.com/antoine-coulon/skott) | 0.35.6 | node skoscript using `findCircularDependencies` function | 29575 ms |
760
+ | [skott](https://github.com/antoine-coulon/skott) | 0.35.6 | node script using skott `findCircularDependencies` function | 29575 ms |
747
761
  | [madge](https://github.com/pahen/madge) | 8.0.0 | `madge --circular --extensions js,ts,jsx,tsx .` | 69328 ms |
748
762
  | [circular-dependency-scanner](https://github.com/emosheeep/circular-dependency-scanner) | 2.3.0 | `ds` - out of memory error | n/a |
749
763
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rev-dep",
3
- "version": "2.3.1",
3
+ "version": "2.4.0-beta.1",
4
4
  "description": "Trace imports, detect unused code, clean dependencies — all with a super-fast CLI",
5
5
  "bin": "bin.js",
6
6
  "files": [
@@ -17,9 +17,9 @@
17
17
  "node": ">=18"
18
18
  },
19
19
  "optionalDependencies": {
20
- "@rev-dep/darwin-arm64": "2.3.1",
21
- "@rev-dep/linux-x64": "2.3.1",
22
- "@rev-dep/win32-x64": "2.3.1"
20
+ "@rev-dep/darwin-arm64": "2.4.0-beta.1",
21
+ "@rev-dep/linux-x64": "2.4.0-beta.1",
22
+ "@rev-dep/win32-x64": "2.4.0-beta.1"
23
23
  },
24
24
  "keywords": [
25
25
  "dependency-analysis",