Closed kristianmandrup closed 6 years ago
Finally figured it all out... had to change the source
to a file glob instead or remove the option to have the defaults take over (or change the test to only test for the dependencies in the index.js
file!)
How does the infrastructure work behind the hood?
Are the test even correct!?
For the
fileStructure
used you have a spelling error forsource
// WORKS (guess the option is ignored)
Also, my new detective infrastructure works, to find dependencies for these file/module types:
However, I can see that they are resolved just once, whereas the
require
are resolved deeply somehow... So there must be some other hard coding going on that is targeted specifically to CommonJS/noderequire
. Please advice.Please see: https://github.com/kristianmandrup/comptroller/tree/test