You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To workaround this I had to do the following, but I would rather not :D
// dpdm does not support custom search directory :/constoldProcessCwd=process.cwdprocess.cwd=()=>cwddeps=cleanupDpdmDeps(awaitparseDependencyTree(entryPoints,{context: cwd// does not work as expected}))process.cwd=oldProcessCwd
The context option is only used to shorten the path, not to specify the current working directory. It requires an additional option to configure to implement this feature.
Thank you for this lib!
I've noticed a bug around
context
option. Searching for dependencies using custom context does not work as expected.Perhaps it's because you use
const currentDirectory = process.cwd();
instead ofconst currentDirectory = options.context
indpdm/src/parser.ts
Line 136 in c389480
To workaround this I had to do the following, but I would rather not :D
https://github.com/jayu/rev-dep/blob/master/src/lib/getDepsTree.ts#L15-L25
The text was updated successfully, but these errors were encountered: