@virmator/publish 14.26.1 → 14.27.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.
Files changed (2) hide show
  1. package/dist/publish.js +13 -4
  2. package/package.json +2 -2
package/dist/publish.js CHANGED
@@ -111,7 +111,12 @@ export const virmatorPublishPlugin = defineVirmatorPlugin(import.meta.dirname, {
111
111
  questionToAsk: 'Failed to automatically determine next publish version. Please enter one:',
112
112
  });
113
113
  log.info(`Publishing version ${nextVersion}...`);
114
- await updateVersions(nextVersion, monoRepoRootPath, monoRepoPackages, log);
114
+ await updateVersions({
115
+ version: nextVersion,
116
+ monoRepoRootPath,
117
+ monoPackages: monoRepoPackages,
118
+ log,
119
+ });
115
120
  await runHiddenShellCommand('npm i');
116
121
  }
117
122
  await runShellCommand(filteredArgs.join(' '));
@@ -365,7 +370,7 @@ export function determineNextVersion({ latestVersion, changeMarkers, }) {
365
370
  return undefined;
366
371
  }
367
372
  }
368
- async function updateVersions(version, monoRepoRootPath, monoPackages, log) {
373
+ async function updateVersions({ version, monoRepoRootPath, monoPackages, log, }) {
369
374
  const packagePaths = [
370
375
  monoRepoRootPath,
371
376
  ...monoPackages.map((monoPackage) => {
@@ -375,10 +380,14 @@ async function updateVersions(version, monoRepoRootPath, monoPackages, log) {
375
380
  await awaitedBlockingMap(packagePaths, async (packagePath) => {
376
381
  const logPath = relative(monoRepoRootPath, join(monoRepoRootPath, packagePath, 'package.json'));
377
382
  log.faint(`Updating ${logPath}...`);
378
- await updateVersion(version, packagePath, monoPackages);
383
+ await updateVersion({
384
+ version,
385
+ packagePath,
386
+ monoPackages,
387
+ });
379
388
  });
380
389
  }
381
- async function updateVersion(version, packagePath, monoPackages) {
390
+ async function updateVersion({ version, packagePath, monoPackages, }) {
382
391
  const packageJsonPath = join(packagePath, 'package.json');
383
392
  const packageJsonContents = (await readFile(packageJsonPath)).toString();
384
393
  const packageJson = JSON.parse(packageJsonContents);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@virmator/publish",
3
- "version": "14.26.1",
3
+ "version": "14.27.1",
4
4
  "description": "Default publish plugin for virmator.",
5
5
  "keywords": [
6
6
  "virmator",
@@ -37,7 +37,7 @@
37
37
  "@augment-vir/assert": "^31.72.1",
38
38
  "@augment-vir/common": "^31.72.1",
39
39
  "@augment-vir/node": "^31.72.1",
40
- "@virmator/core": "^14.26.1",
40
+ "@virmator/core": "^14.27.1",
41
41
  "mri": "^1.2.0",
42
42
  "semver": "^7.8.3",
43
43
  "simple-git": "^3.36.0",