pahen / madge

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

Update to dependency-tree@11 #417

Closed fdc-viktor-luft closed 1 month ago

fdc-viktor-luft commented 1 month ago

In this PR I updated to this release: https://github.com/dependents/node-dependency-tree/releases/tag/v11.0.0

Since the dependency dropped support for Node < 18, I did it here as well and adjusted the pipeline.

fdc-viktor-luft commented 1 month ago

@pahen How do you think about this?

I also tried adding a test to see that scanning Vue SFC files works, but couldn't find how I need to configure the detective to scan these files correctly. Maybe after merging this PR you have an idea?

pahen commented 1 month ago

@pahen How do you think about this?

I also tried adding a test to see that scanning Vue SFC files works, but couldn't find how I need to configure the detective to scan these files correctly. Maybe after merging this PR you have an idea?

Looks good! I don't use Vue myself but I suppose looking at this test might give us some help: https://github.com/dependents/detective-vue2/blob/main/test/test.js

fdc-viktor-luft commented 1 month ago

https://github.com/dependents/detective-vue2/blob/main/test/test.js

Will take a look and possibly add there more test cases. Especially, for different arrangements of top level tags and e.g. setup-syntax support. Will come back with my findings, once that would work, and add some tests for madge as well.

fdc-viktor-luft commented 1 month ago

Found the root cause of my issue and created a PR to fix it: https://github.com/dependents/detective-vue2/pull/5