sidedoor icon indicating copy to clipboard operation
sidedoor copied to clipboard

clarify use of path for sidedoor.get

Open AndrewSouthpaw opened this issue 10 years ago • 0 comments

If using a path to locate the module, sidedoor.get currently requires the module pathname to be written relative from the location of sidedoor.js. For example, if sidedoor is installed via npm, then a module at the root project folder would need to be referenced this way: sidedoor.get('../../../my-module'). This is because require.resolve is called from within that file.

This issue can be avoided by simply passing in an absolute path. The distinction is clarified in the README and an example provided on how to pass an absolute path.

AndrewSouthpaw avatar Mar 24 '15 14:03 AndrewSouthpaw