Skip to content

Commit

Permalink
Merge pull request #65 from artemv/custom-commands
Browse files Browse the repository at this point in the history
fix: node 4 - compatible version
  • Loading branch information
artemv authored Feb 28, 2018
2 parents 26a02db + 8d5143a commit d376dda
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 d376dda

Please sign in to comment.