pahen / madge

Create graphs from your CommonJS, AMD or ES6 module dependencies
MIT License
8.71k stars 312 forks source link

"skipped" files that are from node_modules? #384

Open FFdhorkin opened 11 months ago

FFdhorkin commented 11 months ago

Madge version: 6.1.0

Madge is emitting warnings about skipped files that aren't part of my repository. It's only doing this for a couple of dependency imports... not all of my dependencies.

my .madgerc:

{
    "tsConfig": "./tsconfig.json",
    "fileExtensions": [
        "cjs",
        "mjs",
        "js",
        "jsx",
        "cts",
        "mts",
        "ts",
        "tsx"
    ],
    "detectiveOptions": {
        "ts": {
            "skipTypeImports": true
        }
    }
}

(Same behavior happens if I remove tsConfig/detectiveOptions from my config)

Command being run: madge --circular --warning ./cypress ./anotherFolder

Output:

Processed 16 files (535ms) (5 warnings)

✔ No circular dependency found!

✖ Skipped 5 files

ethers cypress-wait-until cypress-plugin-api chai-parentheses cypress-terminal-report/src/installLogsCollector

Relevant import statements: import { ethers } from 'ethers'; in ./cypress/someFolder/contracts.ts import 'cypress-wait-until'; in ./cypress/support/commands.ts import 'cypress-plugin-api'; in ./cypress/support/e2e.ts import dirtyChai from 'chai-parentheses'; in ./cypress/support/e2e.ts import logsCollector from 'cypress-terminal-report/src/installLogsCollector'; in ./cypress/support/e2e.ts