Skip to content

Commit

Permalink
feat: removing the direct dependency assertion (#57)
Browse files Browse the repository at this point in the history
ok, let us see if this makes a difference long-term
  • Loading branch information
cristiingineru authored and bahmutov committed Oct 25, 2017
1 parent f78e458 commit 7bd9c78
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/dont-break.js
Original file line number Diff line number Diff line change
Expand Up @@ -259,12 +259,12 @@ function testDependent (options, dependent) {
var installedPackage = readJSON(join(folder, 'package.json'))
var moduleVersion = installedPackage.version
var currentVersion = getDependentVersion(installedPackage, pkg.name)
la(check.unemptyString(currentVersion),
'could not find dependency on', pkg.name,
'in module', installedPackage.name)
var usageMessage = currentVersion
? '\ncurrently uses ' + pkg.name + '@' + currentVersion
: '\ncurrently not (directly) using ' + pkg.name
banner('installed', moduleName + '@' + moduleVersion,
'\ninto', folder,
'\ncurrently uses', pkg.name + '@' + currentVersion,
usageMessage,
'\nwill test', pkg.name + '@' + pkg.version)
return folder
})
Expand Down

0 comments on commit 7bd9c78

Please sign in to comment.