@virmator/core 14.6.1 → 14.7.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.
|
@@ -21,7 +21,10 @@ function resolveConfigs({ cwdPackagePath, pluginPackagePath }, cliCommands) {
|
|
|
21
21
|
fullCopyFromPath: join(pluginPackagePath, config.copyFromPath),
|
|
22
22
|
};
|
|
23
23
|
}),
|
|
24
|
-
subCommands: resolveConfigs({
|
|
24
|
+
subCommands: resolveConfigs({
|
|
25
|
+
cwdPackagePath,
|
|
26
|
+
pluginPackagePath,
|
|
27
|
+
}, command.subCommands || {}),
|
|
25
28
|
};
|
|
26
29
|
});
|
|
27
30
|
}
|
|
@@ -149,7 +152,10 @@ export async function executeVirmatorCommand({ log: logParam, entryPointFilePath
|
|
|
149
152
|
});
|
|
150
153
|
const cwdPackageJson = await readPackageJson(cwdPackagePath);
|
|
151
154
|
const pluginPackagePath = plugin.pluginPackageRootPath;
|
|
152
|
-
const resolvedConfigs = resolveConfigs({
|
|
155
|
+
const resolvedConfigs = resolveConfigs({
|
|
156
|
+
cwdPackagePath,
|
|
157
|
+
pluginPackagePath,
|
|
158
|
+
}, plugin.cliCommands);
|
|
153
159
|
const { monoRepoPackages, monoRepoRootPath, packageType } = await getMonoRepoDetails(cwdPackagePath, cwdPackageJson);
|
|
154
160
|
const outerMaxProcesses = params.concurrency || cpus().length - 1 || 1;
|
|
155
161
|
const filteredArgs = args.filteredCommandArgs.filter(check.isTruthy);
|
package/dist/api/install-deps.js
CHANGED
|
@@ -8,7 +8,10 @@ import { NpmDepType } from '../plugin/plugin-init.js';
|
|
|
8
8
|
export async function installPluginNpmDeps({ usedCommands, ...params }) {
|
|
9
9
|
const deps = flattenDeps(usedCommands);
|
|
10
10
|
const installCommands = flattenExtraInstallCommands(usedCommands);
|
|
11
|
-
if (await installNpmDeps({
|
|
11
|
+
if (await installNpmDeps({
|
|
12
|
+
...params,
|
|
13
|
+
deps,
|
|
14
|
+
})) {
|
|
12
15
|
await awaitedForEach(installCommands, async (command) => {
|
|
13
16
|
params.log.faint(`> ${command}`);
|
|
14
17
|
await runShellCommand(command, {
|