rev-dep 2.11.0 → 2.13.0
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 +13 -4
- package/package.json +4 -4
package/Readme.md
CHANGED
|
@@ -215,8 +215,8 @@ The configuration file (`rev-dep.config.json(c)` or `.rev-dep.config.json(c)`) a
|
|
|
215
215
|
|
|
216
216
|
```jsonc
|
|
217
217
|
{
|
|
218
|
-
"configVersion": "1.
|
|
219
|
-
"$schema": "https://github.com/jayu/rev-dep/blob/master/config-schema/1.
|
|
218
|
+
"configVersion": "1.7",
|
|
219
|
+
"$schema": "https://github.com/jayu/rev-dep/blob/master/config-schema/1.7.schema.json?raw=true",
|
|
220
220
|
"rules": [
|
|
221
221
|
{
|
|
222
222
|
"path": ".",
|
|
@@ -251,8 +251,8 @@ Here's a comprehensive example showing all available properties:
|
|
|
251
251
|
|
|
252
252
|
```jsonc
|
|
253
253
|
{
|
|
254
|
-
"configVersion": "1.
|
|
255
|
-
"$schema": "https://github.com/jayu/rev-dep/blob/master/config-schema/1.
|
|
254
|
+
"configVersion": "1.7",
|
|
255
|
+
"$schema": "https://github.com/jayu/rev-dep/blob/master/config-schema/1.7.schema.json?raw=true", // enables json autocompletion
|
|
256
256
|
"conditionNames": ["import", "default"],
|
|
257
257
|
"ignoreFiles": ["**/*.test.*"],
|
|
258
258
|
"rules": [
|
|
@@ -364,6 +364,7 @@ Here's a comprehensive example showing all available properties:
|
|
|
364
364
|
- **`conditionNames`** (optional): Array of condition names for exports resolution
|
|
365
365
|
- **`customAssetExtensions`** (optional): Additional asset extensions treated as resolvable imports (e.g. `["glb", "mp3"]`). Default list covers common extensions for fonts, images, config files.
|
|
366
366
|
- **`ignoreFiles`** (optional): Global file patterns to ignore across all rules. Git ignored files are skipped by default.
|
|
367
|
+
- **`processIgnoredFiles`** (optional): Global file patterns to process even if they match gitignore or `ignoreFiles`.
|
|
367
368
|
- **`rules`** (required): Array of rule objects
|
|
368
369
|
|
|
369
370
|
#### Rule Properties
|
|
@@ -728,12 +729,14 @@ rev-dep circular --ignore-types-imports
|
|
|
728
729
|
#### Options
|
|
729
730
|
|
|
730
731
|
```
|
|
732
|
+
--algorithm string Cycle detection algorithm: DFS (default) or SCC (default "DFS")
|
|
731
733
|
--condition-names strings List of conditions for package.json imports resolution (e.g. node, imports, default)
|
|
732
734
|
-c, --cwd string Working directory for the command (default "$PWD")
|
|
733
735
|
--follow-monorepo-packages strings Enable resolution of imports from monorepo workspace packages. Pass without value to follow all, or pass package names
|
|
734
736
|
-h, --help help for circular
|
|
735
737
|
-t, --ignore-type-imports Exclude type imports from the analysis
|
|
736
738
|
--package-json string Path to package.json (default: ./package.json)
|
|
739
|
+
--process-ignored-files strings Glob patterns to process even if they are ignored by gitignore or exclude patterns
|
|
737
740
|
--tsconfig-json string Path to tsconfig.json (default: ./tsconfig.json)
|
|
738
741
|
-v, --verbose Show warnings and verbose output
|
|
739
742
|
```
|
|
@@ -774,6 +777,7 @@ rev-dep config run [flags]
|
|
|
774
777
|
-c, --cwd string Working directory (default "$PWD")
|
|
775
778
|
--fix Automatically fix fixable issues
|
|
776
779
|
--follow-monorepo-packages strings Enable resolution of imports from monorepo workspace packages. Pass without value to follow all, or pass package names
|
|
780
|
+
--format string Output format (json, issues-list)
|
|
777
781
|
-h, --help help for run
|
|
778
782
|
--list-all-issues List all issues instead of limiting output
|
|
779
783
|
--package-json string Path to package.json (default: ./package.json)
|
|
@@ -834,6 +838,7 @@ rev-dep entry-points --print-deps-count
|
|
|
834
838
|
-t, --ignore-type-imports Exclude type imports from the analysis
|
|
835
839
|
--package-json string Path to package.json (default: ./package.json)
|
|
836
840
|
--print-deps-count Show the number of dependencies for each entry point
|
|
841
|
+
--process-ignored-files strings Glob patterns to process even if they are ignored by gitignore or exclude patterns
|
|
837
842
|
--result-exclude strings Exclude files matching these glob patterns from results
|
|
838
843
|
--result-include strings Only include files matching these glob patterns in results
|
|
839
844
|
--tsconfig-json string Path to tsconfig.json (default: ./tsconfig.json)
|
|
@@ -871,6 +876,7 @@ rev-dep files --entry-point src/index.ts
|
|
|
871
876
|
-h, --help help for files
|
|
872
877
|
-t, --ignore-type-imports Exclude type imports from the analysis
|
|
873
878
|
--package-json string Path to package.json (default: ./package.json)
|
|
879
|
+
--process-ignored-files strings Glob patterns to process even if they are ignored by gitignore or exclude patterns
|
|
874
880
|
--tsconfig-json string Path to tsconfig.json (default: ./tsconfig.json)
|
|
875
881
|
-v, --verbose Show warnings and verbose output
|
|
876
882
|
```
|
|
@@ -906,6 +912,7 @@ rev-dep imported-by --file src/utils/helpers.ts
|
|
|
906
912
|
-h, --help help for imported-by
|
|
907
913
|
--list-imports List the import identifiers used by each file
|
|
908
914
|
--package-json string Path to package.json (default: ./package.json)
|
|
915
|
+
--process-ignored-files strings Glob patterns to process even if they are ignored by gitignore or exclude patterns
|
|
909
916
|
--tsconfig-json string Path to tsconfig.json (default: ./tsconfig.json)
|
|
910
917
|
-v, --verbose Show warnings and verbose output
|
|
911
918
|
```
|
|
@@ -987,6 +994,7 @@ rev-dep unresolved [flags]
|
|
|
987
994
|
--ignore-files strings File path glob patterns to ignore in unresolved output
|
|
988
995
|
--ignore-imports strings Import requests to ignore globally in unresolved output
|
|
989
996
|
--package-json string Path to package.json (default: ./package.json)
|
|
997
|
+
--process-ignored-files strings Glob patterns to process even if they are ignored by gitignore or exclude patterns
|
|
990
998
|
--tsconfig-json string Path to tsconfig.json (default: ./tsconfig.json)
|
|
991
999
|
-v, --verbose Show warnings and verbose output
|
|
992
1000
|
```
|
|
@@ -1269,6 +1277,7 @@ rev-dep resolve -p src/index.ts -f src/utils/helpers.ts
|
|
|
1269
1277
|
-t, --ignore-type-imports Exclude type imports from the analysis
|
|
1270
1278
|
--module string Target node module name to check for dependencies
|
|
1271
1279
|
--package-json string Path to package.json (default: ./package.json)
|
|
1280
|
+
--process-ignored-files strings Glob patterns to process even if they are ignored by gitignore or exclude patterns
|
|
1272
1281
|
--tsconfig-json string Path to tsconfig.json (default: ./tsconfig.json)
|
|
1273
1282
|
-v, --verbose Show warnings and verbose output
|
|
1274
1283
|
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rev-dep",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.13.0",
|
|
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.13.0",
|
|
21
|
+
"@rev-dep/linux-x64": "2.13.0",
|
|
22
|
+
"@rev-dep/win32-x64": "2.13.0"
|
|
23
23
|
},
|
|
24
24
|
"keywords": [
|
|
25
25
|
"dependency-analysis",
|