dgrove-oss closed pull request #9: Fix openwhisk-composer module resolution in compose command URL: https://github.com/apache/incubator-openwhisk-composer/pull/9
This is a PR merged from a forked repository. As GitHub hides the original diff on merge, it is displayed below for the sake of provenance: As this is a foreign pull request (from a fork), the diff is supplied below (as it won't show otherwise due to GitHub magic): diff --git a/bin/compose.js b/bin/compose.js index f0aa334..b581700 100755 --- a/bin/compose.js +++ b/bin/compose.js @@ -39,7 +39,7 @@ Module._resolveFilename = function (request, parent) { try { return _resolveFilename(request, parent) } catch (error) { - return require.resolve(request.replace(request.startsWith(json.name + '/') ? json.name : json.name.substring(0, json.name.indexOf('/')), '..')) + return require.resolve(request.replace(json.name, '..')) } } else { return _resolveFilename(request, parent) ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services