Open crystalfp opened 3 months ago
Confirmed same issue. This does not work in 8.0.0
or 7.0.0
, only *.d.ts
files are output.
Downgrading to 6.1.0
outputs all the files.
// dep.js
const madge = require('madge');
const path = require('path');
madge('src/client/index.ts', {
resolve: {
alias: {
src: path.resolve(__dirname, './src'),
},
extensions: ['.js', '.ts', '.jsx', '.tsx'],
},
fileExtensions: ['js', 'ts', 'jsx', 'tsx'],
}).then((res) => {
console.log(res.obj());
});
Any news?
Madge has worked well in the past so now I want to use it on a new project (also to see how it process vue files). The problem is that madge 8.0.0 does not find any file. And I don't know where to start investigating this problem.
There is no configuration around and the command line is:
But the result is:
Instead, if I put the path to ONE file only, it works.
Where am I doing wrong? Thanks! mario