This is an automated email from the ASF dual-hosted git repository.

dgrove pushed a commit to branch master
in repository 
https://gitbox.apache.org/repos/asf/incubator-openwhisk-composer.git


The following commit(s) were added to refs/heads/master by this push:
     new 7ae7f08  Fix openwhisk-composer module resolution in compose command 
(#9)
7ae7f08 is described below

commit 7ae7f08c0ac1fa837f022130b8587917458f80fb
Author: Olivier Tardieu <[email protected]>
AuthorDate: Tue Nov 20 13:30:57 2018 -0500

    Fix openwhisk-composer module resolution in compose command (#9)
---
 bin/compose.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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)

Reply via email to