1.0.4 • Published 9 months ago
@smartlook/circular-deps-detector v1.0.4
Installation
NPM
npm i @smartlook/circular-deps-detector
YARN
yarn add @smartlook/circular-deps-detector
PNPM
pnpm add @smartlook/circular-deps-detector
Usage
Add this line to your scripts in package.json
"detect-circular-deps": "detect-circular-deps --config ./circular-deps-config.json"
Then create a new JSON file circular-deps-config.json
with the following content:
Example:
{
"projectName": "My App",
"rootDir": "./src",
"tsConfig": "./tsconfig.json",
"entryPoint": "./src/index.ts",
"outputFile": "./circular-deps-report.json",
"ignorePatterns": [
"/src/libs/.*",
"/src/services/utils/.*",
]
}