@virmator/core 14.6.1 → 14.7.1

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.
@@ -63,7 +63,9 @@ packageName) {
63
63
  try {
64
64
  const copyFromContents = (await readFile(config.fullCopyFromPath)).toString();
65
65
  const writeContents = transform ? await transform(copyFromContents) : copyFromContents;
66
- await mkdir(dirname(config.fullCopyToPath), { recursive: true });
66
+ await mkdir(dirname(config.fullCopyToPath), {
67
+ recursive: true,
68
+ });
67
69
  await writeFile(config.fullCopyToPath, writeContents);
68
70
  log.info(`${logPrefix}Copied ${baseConfigFileName}`);
69
71
  }
@@ -21,7 +21,10 @@ function resolveConfigs({ cwdPackagePath, pluginPackagePath }, cliCommands) {
21
21
  fullCopyFromPath: join(pluginPackagePath, config.copyFromPath),
22
22
  };
23
23
  }),
24
- subCommands: resolveConfigs({ cwdPackagePath, pluginPackagePath }, command.subCommands || {}),
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({ cwdPackagePath, pluginPackagePath }, plugin.cliCommands);
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);
@@ -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({ ...params, deps })) {
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, {
@@ -18,7 +18,9 @@ export async function withImportedTsFile({ inputPath, outputPath }, moduleType,
18
18
  return await callback(loadedConfig);
19
19
  }
20
20
  finally {
21
- await wrapInTry(() => rm(compiledPath, { force: true }));
21
+ await wrapInTry(() => rm(compiledPath, {
22
+ force: true,
23
+ }));
22
24
  }
23
25
  }
24
26
  /**
@@ -35,7 +37,9 @@ export async function withCompiledTsFile({ inputPath, outputPath }, moduleType,
35
37
  return await callback(compiledPath);
36
38
  }
37
39
  finally {
38
- await wrapInTry(() => rm(compiledPath, { force: true }));
40
+ await wrapInTry(() => rm(compiledPath, {
41
+ force: true,
42
+ }));
39
43
  }
40
44
  }
41
45
  function createOutfilePath(inputFilePath, moduleType) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@virmator/core",
3
- "version": "14.6.1",
3
+ "version": "14.7.1",
4
4
  "description": "Shared core functionality for all virmator plugins and the virmator CLI.",
5
5
  "keywords": [
6
6
  "automation",