virmator 4.3.2 → 4.3.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.
@@ -41,10 +41,15 @@ exports.publishCommandDefinition = (0, define_command_1.defineCommand)({
41
41
  throw new Error(`git changes detected in "${packageJsonPath}". Cannot run publish command with changes, commit them first.`);
42
42
  }
43
43
  const workspaceDirs = getWorkspaceDirs(packageJson, packageJsonPath);
44
+ await updateWorkspaceVersions(packageJsonPath, workspaceDirs);
44
45
  if (await isCurrentVersionPublished(packageJson, workspaceDirs)) {
45
46
  await bumpPackageVersion(packageJson, packageJsonPath);
46
47
  }
47
48
  await updateWorkspaceVersions(packageJsonPath, workspaceDirs);
49
+ await (0, node_only_1.runShellCommand)(`npm i`, {
50
+ rejectOnError: true,
51
+ cwd: (0, path_1.dirname)(packageJsonPath),
52
+ });
48
53
  await publishPackages(workspaceDirs, packageJsonPath);
49
54
  await updateGit(packageJsonPath);
50
55
  return {
@@ -74,10 +79,6 @@ async function updateWorkspaceVersions(packageJsonPath, workspaceDirPaths) {
74
79
  newWorkspacePackageJson.version = newVersion;
75
80
  await (0, promises_1.writeFile)(workspacePackageJsonPath, JSON.stringify(newWorkspacePackageJson, null, 4) + '\n');
76
81
  });
77
- await (0, node_only_1.runShellCommand)(`npm i`, {
78
- rejectOnError: true,
79
- cwd: (0, path_1.dirname)(packageJsonPath),
80
- });
81
82
  }
82
83
  async function publishPackages(workspaceDirPaths, packageJsonPath) {
83
84
  const packagePath = (0, path_1.dirname)(packageJsonPath);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "virmator",
3
- "version": "4.3.2",
3
+ "version": "4.3.3",
4
4
  "description": "Handle all the stuffs in one package.",
5
5
  "keywords": [
6
6
  "automation",