@ts-stack/cycle-detector 1.0.0 → 1.0.2
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.
- package/README.md +22 -1
- package/package.json +11 -3
package/README.md
CHANGED
|
@@ -22,4 +22,25 @@ You don't even need to install it! Just run it via `npx`:
|
|
|
22
22
|
npx @ts-stack/cycle-detector src/index.ts
|
|
23
23
|
# OR
|
|
24
24
|
npx @ts-stack/cycle-detector packages/*/src/index.ts
|
|
25
|
-
```
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
Also you can install this utility locally:
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
npm install -D @ts-stack/cycle-detector
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
In your `package.json`:
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
```json
|
|
37
|
+
"scripts": {
|
|
38
|
+
"lint:cycles": "cycle-detector packages/*/src/index.ts"
|
|
39
|
+
}
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
And then:
|
|
43
|
+
|
|
44
|
+
```bash
|
|
45
|
+
npm run lint:cycles
|
|
46
|
+
```
|
package/package.json
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ts-stack/cycle-detector",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.2",
|
|
5
|
+
"bin": {
|
|
6
|
+
"cycle-detector": "./dist/index.js"
|
|
7
|
+
},
|
|
5
8
|
"description": "A fast, zero-dependency CLI tool to detect circular dependencies in TypeScript ESM projects, ignoring type-only imports.",
|
|
6
9
|
"repository": "https://github.com/ts-stack/cycle-detector",
|
|
7
10
|
"exports": {
|
|
@@ -24,9 +27,15 @@
|
|
|
24
27
|
"build-test": "tsc -b tsconfig.unit.json",
|
|
25
28
|
"clean": "rimraf dist*"
|
|
26
29
|
},
|
|
27
|
-
"keywords": [
|
|
30
|
+
"keywords": [
|
|
31
|
+
"lint",
|
|
32
|
+
"circular dependencies"
|
|
33
|
+
],
|
|
28
34
|
"author": "Kostia Tretiak",
|
|
29
35
|
"license": "MIT",
|
|
36
|
+
"peerDependencies": {
|
|
37
|
+
"typescript": ">=5.0.0"
|
|
38
|
+
},
|
|
30
39
|
"devDependencies": {
|
|
31
40
|
"@eslint/js": "^10.0.1",
|
|
32
41
|
"@types/jest": "^29.5.14",
|
|
@@ -36,7 +45,6 @@
|
|
|
36
45
|
"nodemon": "^3.1.14",
|
|
37
46
|
"prettier": "^3.8.4",
|
|
38
47
|
"rimraf": "^5.0.10",
|
|
39
|
-
"ts-node": "^10.9.2",
|
|
40
48
|
"typescript": "^5.9.3",
|
|
41
49
|
"typescript-eslint": "^8.62.0"
|
|
42
50
|
},
|