**Describe the bug**
All my tsconfig files are in `packages/*`, and it makes no sense to keep tsconfig in the root. And this is not work:
```bash
dpdm --no-warning --no-tree -T --group-by-package './packages/*/src/index.ts'
```
**To Reproduce**
Run this command from root folder in monorepository.
**Expected behavior**
Cyclic dependencies should be found.
**Additional context**
Two working versions with other options:
```bash
# 1
dpdm --no-warning --no-tree -T --cwd packages/core src
# 2
dpdm --no-warning --no-tree -T --tsconfig packages/core/tsconfig.json packages/core/src
```
How do you configure your type check command (like `tsc -p ?`)? A shared tsconfig.json is required for dpdm to resolve path alias. But if your build tool doesn't need it, dpdm can also work without it.
To check for a cyclic dependency, you can clone my repository. Then go back to the state where the cyclic dependency was:
```bash
git clone https://github.com/ditsmod/ditsmod.git
cd ditsmod
git checkout 5f2f1ee
# works
npx dpdm --no-warning --no-tree -T --cwd packages/core src
# not works
npx dpdm --no-warning --no-tree -T --group-by-package './packages/*/src/index.ts'
```
Fixed in `[email protected]`: `dpdm` now resolves package-local `tsconfig.json` files and referenced tsconfig projects, and `--group-by-package` can report internal package cycles as package self-cycles.
I also verified the fix against the reported Ditsmod commit (`5f2f1ee`); the command now reports the package cycles for `@ditsmod/core`, `@ditsmod/rest`, and `@ditsmod/trpc`.