1.0.4 • Published 9 months ago

@smartlook/circular-deps-detector v1.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

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:

PropertyTypeDescription
projectNamestringYour project name
rootDirstringroot directory to scan
tsConfigstringpath to your TS config file
entryPointstringpath to the entry point file
outputFilestringpath to output report file (JSON)
ignorePatternsstringarray of regexp patterns (valid parameter of JavaScript new RegExp())

Example:

{
	"projectName": "My App",
	"rootDir": "./src",
	"tsConfig": "./tsconfig.json",
	"entryPoint": "./src/index.ts",
	"outputFile": "./circular-deps-report.json",
	"ignorePatterns": [
		"/src/libs/.*",
		"/src/services/utils/.*",
	]
}
1.0.4

9 months ago

1.0.3

9 months ago

1.0.2

9 months ago

1.0.1

9 months ago

1.0.0

9 months ago