Skip to main content

Overview

The rev-dep entry-points command analyzes your project structure to identify all potential entry points. An entry point is a source file that is not imported by any other file. Entry points can represent:
  • The main entry of the application
  • Individual pages or features
  • Configuration or test bootstrap files
This command is useful for understanding your application’s architecture and dependencies.

Usage

rev-dep entry-points [flags]

Flags

--condition-names
string[]
List of conditions for package.json imports resolution (e.g. node, imports, default)
-n, --count
boolean
Only display the number of entry points found
-c, --cwd
string
default:"$PWD"
Working directory for the command
--follow-monorepo-packages
string[]
Enable resolution of imports from monorepo workspace packages. Pass without value to follow all, or pass package names
--graph-exclude
string[]
Exclude files matching these glob patterns from analysis
-t, --ignore-type-imports
boolean
Exclude type imports from the analysis
--package-json
string
default:"./package.json"
Path to package.json
--print-deps-count
boolean
Show the number of dependencies for each entry point
--result-exclude
string[]
Exclude files matching these glob patterns from results
--result-include
string[]
Only include files matching these glob patterns in results
--tsconfig-json
string
default:"./tsconfig.json"
Path to tsconfig.json
-v, --verbose
boolean
Show warnings and verbose output
-h, --help
boolean
Help for entry-points command

Examples

List all entry points

rev-dep entry-points

Show dependency counts for each entry point

rev-dep entry-points --print-deps-count
This helps identify which entry points have the most dependencies, useful for optimization.

Count total entry points

rev-dep entry-points --count

Filter entry points by pattern

rev-dep entry-points --result-include="src/pages/**/*.tsx"

Exclude test files from results

rev-dep entry-points --result-exclude="**/*.test.ts" --result-exclude="**/*.spec.ts"

Exclude test files from analysis

rev-dep entry-points --graph-exclude="**/__tests__/**" --graph-exclude="**/*.test.ts"
  • files - List all files in an entry point’s dependency tree
  • resolve - Trace dependency paths between files

Build docs developers (and LLMs) love