From 7bd9c780d53b2bff4609d93933827092321cbcd2 Mon Sep 17 00:00:00 2001 From: Cristi Ingineru Date: Wed, 25 Oct 2017 05:51:28 +0300 Subject: [PATCH] feat: removing the direct dependency assertion (#57) ok, let us see if this makes a difference long-term --- src/dont-break.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/dont-break.js b/src/dont-break.js index b9a45fc..5b4bef8 100644 --- a/src/dont-break.js +++ b/src/dont-break.js @@ -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 })