rev-dep 2.10.0 → 2.11.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 +30 -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
 
@@ -962,6 +963,35 @@ rev-dep list-cwd-files --include='*.ts' --exclude='*.test.ts'
962
963
  ```
963
964
 
964
965
 
966
+ ### rev-dep unresolved
967
+
968
+ List unresolved imports in the project
969
+
970
+ #### Synopsis
971
+
972
+ Detect and list imports that could not be resolved during imports resolution. Groups imports by file.
973
+
974
+ ```
975
+ rev-dep unresolved [flags]
976
+ ```
977
+
978
+ #### Options
979
+
980
+ ```
981
+ --condition-names strings List of conditions for package.json imports resolution (e.g. node, imports, default)
982
+ --custom-asset-extensions strings Additional asset extensions treated as resolvable (e.g. glb,mp3)
983
+ -c, --cwd string Working directory for the command (default "$PWD")
984
+ --follow-monorepo-packages strings Enable resolution of imports from monorepo workspace packages. Pass without value to follow all, or pass package names
985
+ -h, --help help for unresolved
986
+ --ignore stringToString Map of file path (relative to cwd) to exact import request to ignore (e.g. --ignore src/index.ts=some-module) (default [])
987
+ --ignore-files strings File path glob patterns to ignore in unresolved output
988
+ --ignore-imports strings Import requests to ignore globally in unresolved output
989
+ --package-json string Path to package.json (default: ./package.json)
990
+ --tsconfig-json string Path to tsconfig.json (default: ./tsconfig.json)
991
+ -v, --verbose Show warnings and verbose output
992
+ ```
993
+
994
+
965
995
  ### rev-dep node-modules
966
996
 
967
997
  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.11.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.11.0",
21
+ "@rev-dep/linux-x64": "2.11.0",
22
+ "@rev-dep/win32-x64": "2.11.0"
23
23
  },
24
24
  "keywords": [
25
25
  "dependency-analysis",