Enforce JavaScript and TypeScript dependency rules before architectural drift spreads with dependency-cruiser

Scan a JS or TS codebase for forbidden imports, circular dependencies, orphaned modules, and other dependency-rule violations before they turn into structural drift.

agentskillexchange Updated 28 repo stars

File contents

Enforce JavaScript and TypeScript dependency rules before architectural drift spreads with dependency-cruiser

Scan a JS or TS codebase for forbidden imports, circular dependencies, orphaned modules, and other dependency-rule violations before they turn into structural drift.

Prerequisites

Node.js, npm or pnpm

Installation

Use the upstream install or setup path that matches your environment:

  • npm install --save-dev dependency-cruiser
  • yarn add -D dependency-cruiser
  • pnpm add -D dependency-cruiser
  • npx depcruise --init

Basic usage or getting-started notes:

Documentation

Source

agentskillexchange/skills/tree/main/skills/enforce-javascript-and-typescript-dependency-rules-before-architectural-drift-spreads-with-dependency-cruiser commit b7d1df4342

Frequently asked questions

npx skillmds@latest add agentskillexchange/enforce-javascript-and-typescript-dependency-rules-before-ar