rev-dep 2.3.2 → 2.4.0-beta.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.
- package/Readme.md +50 -36
- package/package.json +4 -4
package/Readme.md
CHANGED
|
@@ -328,12 +328,14 @@ rev-dep circular --ignore-types-imports
|
|
|
328
328
|
#### Options
|
|
329
329
|
|
|
330
330
|
```
|
|
331
|
-
|
|
332
|
-
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
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
|
-
|
|
363
|
-
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
--
|
|
370
|
-
--
|
|
371
|
-
--
|
|
372
|
-
|
|
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
|
-
|
|
399
|
-
-
|
|
400
|
-
-
|
|
401
|
-
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
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
|
|
715
|
-
--compact-summary
|
|
716
|
-
|
|
717
|
-
-
|
|
718
|
-
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
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
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rev-dep",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.4.0-beta.2",
|
|
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.
|
|
21
|
-
"@rev-dep/linux-x64": "2.
|
|
22
|
-
"@rev-dep/win32-x64": "2.
|
|
20
|
+
"@rev-dep/darwin-arm64": "2.4.0-beta.2",
|
|
21
|
+
"@rev-dep/linux-x64": "2.4.0-beta.2",
|
|
22
|
+
"@rev-dep/win32-x64": "2.4.0-beta.2"
|
|
23
23
|
},
|
|
24
24
|
"keywords": [
|
|
25
25
|
"dependency-analysis",
|