Skip to content

Commit

Permalink
fix: node 4 - compatible version
Browse files Browse the repository at this point in the history
  • Loading branch information
artemv committed Feb 28, 2018
1 parent 26a02db commit 8d5143a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dont-break.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ function installCurrentModuleToDependent (sourceFolder, dependentFolder, current
debug('testing the current module in %s', dependentFolder)
debug('current module folder %s', sourceFolder)

if (['npm-link', 'yarn-link'].includes(currentModuleInstallMethod)) {
if (_.indexOf(['npm-link', 'yarn-link'], currentModuleInstallMethod) >= 0) {
var pkgName = currentPackageName()
var linkCmd = currentModuleInstallMethod.replace('-', ' ')
return linkCurrentModule(sourceFolder, linkCmd)
Expand Down

0 comments on commit 8d5143a

Please sign in to comment.