@epic-web/workshop-utils 6.87.2 → 6.87.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -110,15 +110,11 @@ async function checkDependenciesWithNpmLs(rootDir, expectedDependencies, package
|
|
|
110
110
|
try {
|
|
111
111
|
const result = await execa(command, ['ls', '--depth=0', '--json', ...expectedDependencies], { cwd: rootDir, reject: false });
|
|
112
112
|
const output = parseNpmLsOutput(result.stdout);
|
|
113
|
-
const
|
|
114
|
-
const
|
|
115
|
-
? []
|
|
116
|
-
: getFailingDependencies(expectedDependencies, output);
|
|
113
|
+
const failingDependencies = getFailingDependencies(expectedDependencies, output);
|
|
114
|
+
const ok = failingDependencies.length === 0;
|
|
117
115
|
return {
|
|
118
116
|
ok,
|
|
119
|
-
failingDependencies
|
|
120
|
-
? failingDependencies
|
|
121
|
-
: expectedDependencies,
|
|
117
|
+
failingDependencies,
|
|
122
118
|
};
|
|
123
119
|
}
|
|
124
120
|
catch (error) {
|