@virmator/core 13.8.2 → 13.9.0
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.
- package/dist/api/install-deps.js +4 -4
- package/package.json +1 -1
package/dist/api/install-deps.js
CHANGED
|
@@ -51,10 +51,9 @@ export async function installNpmDeps({ cwdPackagePath, cwdPackageJson, pluginPac
|
|
|
51
51
|
[NpmDepType.Dev]: [],
|
|
52
52
|
[NpmDepType.Regular]: [],
|
|
53
53
|
});
|
|
54
|
-
const
|
|
55
|
-
await awaitedBlockingMap(depsToInstallEntries, async ([depType, deps,]) => {
|
|
54
|
+
const installed = await awaitedBlockingMap(Object.entries(depsThatNeedInstalling), async ([depType, deps,]) => {
|
|
56
55
|
if (!deps.length) {
|
|
57
|
-
return;
|
|
56
|
+
return false;
|
|
58
57
|
}
|
|
59
58
|
const installDeps = deps.join(' ');
|
|
60
59
|
const installCommand = [
|
|
@@ -71,8 +70,9 @@ export async function installNpmDeps({ cwdPackagePath, cwdPackageJson, pluginPac
|
|
|
71
70
|
hookUpToConsole: true,
|
|
72
71
|
rejectOnError: true,
|
|
73
72
|
});
|
|
73
|
+
return true;
|
|
74
74
|
});
|
|
75
|
-
return
|
|
75
|
+
return installed.some(check.isTrue);
|
|
76
76
|
}
|
|
77
77
|
function combineDeps(packageJson) {
|
|
78
78
|
return {
|