rev-dep 2.12.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 +12 -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
|
```
|
|
@@ -835,6 +838,7 @@ rev-dep entry-points --print-deps-count
|
|
|
835
838
|
-t, --ignore-type-imports Exclude type imports from the analysis
|
|
836
839
|
--package-json string Path to package.json (default: ./package.json)
|
|
837
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
|
|
838
842
|
--result-exclude strings Exclude files matching these glob patterns from results
|
|
839
843
|
--result-include strings Only include files matching these glob patterns in results
|
|
840
844
|
--tsconfig-json string Path to tsconfig.json (default: ./tsconfig.json)
|
|
@@ -872,6 +876,7 @@ rev-dep files --entry-point src/index.ts
|
|
|
872
876
|
-h, --help help for files
|
|
873
877
|
-t, --ignore-type-imports Exclude type imports from the analysis
|
|
874
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
|
|
875
880
|
--tsconfig-json string Path to tsconfig.json (default: ./tsconfig.json)
|
|
876
881
|
-v, --verbose Show warnings and verbose output
|
|
877
882
|
```
|
|
@@ -907,6 +912,7 @@ rev-dep imported-by --file src/utils/helpers.ts
|
|
|
907
912
|
-h, --help help for imported-by
|
|
908
913
|
--list-imports List the import identifiers used by each file
|
|
909
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
|
|
910
916
|
--tsconfig-json string Path to tsconfig.json (default: ./tsconfig.json)
|
|
911
917
|
-v, --verbose Show warnings and verbose output
|
|
912
918
|
```
|
|
@@ -988,6 +994,7 @@ rev-dep unresolved [flags]
|
|
|
988
994
|
--ignore-files strings File path glob patterns to ignore in unresolved output
|
|
989
995
|
--ignore-imports strings Import requests to ignore globally in unresolved output
|
|
990
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
|
|
991
998
|
--tsconfig-json string Path to tsconfig.json (default: ./tsconfig.json)
|
|
992
999
|
-v, --verbose Show warnings and verbose output
|
|
993
1000
|
```
|
|
@@ -1270,6 +1277,7 @@ rev-dep resolve -p src/index.ts -f src/utils/helpers.ts
|
|
|
1270
1277
|
-t, --ignore-type-imports Exclude type imports from the analysis
|
|
1271
1278
|
--module string Target node module name to check for dependencies
|
|
1272
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
|
|
1273
1281
|
--tsconfig-json string Path to tsconfig.json (default: ./tsconfig.json)
|
|
1274
1282
|
-v, --verbose Show warnings and verbose output
|
|
1275
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",
|