virmator 4.3.1 → 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.
package/configs/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"preview": "virmator frontend preview",
|
|
12
12
|
"spellcheck": "virmator spellcheck",
|
|
13
13
|
"start": "npm install && virmator frontend",
|
|
14
|
-
"test": "virmator test
|
|
14
|
+
"test": "virmator test",
|
|
15
15
|
"test:all": "npm run test:types && npm test && npm run spellcheck && npm run test:format && npm run test:docs",
|
|
16
16
|
"test:docs": "virmator code-in-markdown check",
|
|
17
17
|
"test:format": "virmator format check",
|
|
@@ -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
|
-
await bumpPackageVersion(packageJson, packageJsonPath
|
|
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 {
|
|
@@ -129,7 +134,7 @@ const releaseTypesObject = {
|
|
|
129
134
|
};
|
|
130
135
|
const releaseTypeOptions = (0, augment_vir_1.getObjectTypedKeys)(releaseTypesObject);
|
|
131
136
|
const releaseTypeMessage = `Choose a release type: ${(0, augment_vir_1.joinWithFinalConjunction)(releaseTypeOptions, 'or')}:`;
|
|
132
|
-
async function bumpPackageVersion(packageJson, packageJsonPath
|
|
137
|
+
async function bumpPackageVersion(packageJson, packageJsonPath) {
|
|
133
138
|
const releaseType = (await (0, console_1.askQuestionUntilConditionMet)({
|
|
134
139
|
conditionCallback: (input) => {
|
|
135
140
|
return releaseTypeOptions.includes(input.toLowerCase());
|