Skip to content

Commit

Permalink
fix: Node4-compatible version
Browse files Browse the repository at this point in the history
  • Loading branch information
artemv committed Mar 21, 2018
1 parent ba707cb commit a00ce9c
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 @@ -223,7 +223,7 @@ function testDependent (options, dependent, config) {
debug('current module folder %s', sourceFolder)

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

0 comments on commit a00ce9c

Please sign in to comment.