Skip to content

Commit

Permalink
Fix openwhisk-composer module resolution in compose command (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
tardieu authored and dgrove-oss committed Nov 20, 2018
1 parent 3c34c1b commit 7ae7f08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/compose.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 7ae7f08

Please sign in to comment.