rev-dep 2.10.0 → 2.12.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.
Files changed (2) hide show
  1. package/Readme.md +31 -0
  2. package/package.json +4 -4
package/Readme.md CHANGED
@@ -362,6 +362,7 @@ Here's a comprehensive example showing all available properties:
362
362
  - **`configVersion`** (required): Configuration version string
363
363
  - **`$schema`** (optional): JSON schema reference for validation
364
364
  - **`conditionNames`** (optional): Array of condition names for exports resolution
365
+ - **`customAssetExtensions`** (optional): Additional asset extensions treated as resolvable imports (e.g. `["glb", "mp3"]`). Default list covers common extensions for fonts, images, config files.
365
366
  - **`ignoreFiles`** (optional): Global file patterns to ignore across all rules. Git ignored files are skipped by default.
366
367
  - **`rules`** (required): Array of rule objects
367
368
 
@@ -773,6 +774,7 @@ rev-dep config run [flags]
773
774
  -c, --cwd string Working directory (default "$PWD")
774
775
  --fix Automatically fix fixable issues
775
776
  --follow-monorepo-packages strings Enable resolution of imports from monorepo workspace packages. Pass without value to follow all, or pass package names
777
+ --format string Output format (json, issues-list)
776
778
  -h, --help help for run
777
779
  --list-all-issues List all issues instead of limiting output
778
780
  --package-json string Path to package.json (default: ./package.json)
@@ -962,6 +964,35 @@ rev-dep list-cwd-files --include='*.ts' --exclude='*.test.ts'
962
964
  ```
963
965
 
964
966
 
967
+ ### rev-dep unresolved
968
+
969
+ List unresolved imports in the project
970
+
971
+ #### Synopsis
972
+
973
+ Detect and list imports that could not be resolved during imports resolution. Groups imports by file.
974
+
975
+ ```
976
+ rev-dep unresolved [flags]
977
+ ```
978
+
979
+ #### Options
980
+
981
+ ```
982
+ --condition-names strings List of conditions for package.json imports resolution (e.g. node, imports, default)
983
+ --custom-asset-extensions strings Additional asset extensions treated as resolvable (e.g. glb,mp3)
984
+ -c, --cwd string Working directory for the command (default "$PWD")
985
+ --follow-monorepo-packages strings Enable resolution of imports from monorepo workspace packages. Pass without value to follow all, or pass package names
986
+ -h, --help help for unresolved
987
+ --ignore stringToString Map of file path (relative to cwd) to exact import request to ignore (e.g. --ignore src/index.ts=some-module) (default [])
988
+ --ignore-files strings File path glob patterns to ignore in unresolved output
989
+ --ignore-imports strings Import requests to ignore globally in unresolved output
990
+ --package-json string Path to package.json (default: ./package.json)
991
+ --tsconfig-json string Path to tsconfig.json (default: ./tsconfig.json)
992
+ -v, --verbose Show warnings and verbose output
993
+ ```
994
+
995
+
965
996
  ### rev-dep node-modules
966
997
 
967
998
  Analyze and manage Node.js dependencies
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rev-dep",
3
- "version": "2.10.0",
3
+ "version": "2.12.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.10.0",
21
- "@rev-dep/linux-x64": "2.10.0",
22
- "@rev-dep/win32-x64": "2.10.0"
20
+ "@rev-dep/darwin-arm64": "2.12.0",
21
+ "@rev-dep/linux-x64": "2.12.0",
22
+ "@rev-dep/win32-x64": "2.12.0"
23
23
  },
24
24
  "keywords": [
25
25
  "dependency-analysis",