wisdom 14.1.0 → 14.1.2
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/ChangeLog +10 -0
- package/README.md +1 -0
- package/lib/parse-commit-type.js +1 -3
- package/lib/prompts.js +4 -4
- package/lib/publish.js +1 -1
- package/lib/wisdom.js +2 -2
- package/package.json +1 -1
package/ChangeLog
CHANGED
package/README.md
CHANGED
package/lib/parse-commit-type.js
CHANGED
package/lib/prompts.js
CHANGED
|
@@ -28,12 +28,12 @@ export const choose = async () => {
|
|
|
28
28
|
|
|
29
29
|
export const ask = async (name, version) => {
|
|
30
30
|
const prompt = new Confirm({
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
name: 'question',
|
|
32
|
+
message: `Are you sure that you want to publish major version of '${name}': v${version}?`,
|
|
33
33
|
});
|
|
34
|
-
|
|
34
|
+
|
|
35
35
|
return await run(prompt);
|
|
36
|
-
}
|
|
36
|
+
};
|
|
37
37
|
|
|
38
38
|
async function run(prompt) {
|
|
39
39
|
const [, answer] = await tryToCatch(prompt.run.bind(prompt));
|
package/lib/publish.js
CHANGED
package/lib/wisdom.js
CHANGED
|
@@ -73,7 +73,7 @@ async function publish({version, info, emitter, dryRun, force}) {
|
|
|
73
73
|
let type = '--';
|
|
74
74
|
let nextVersion;
|
|
75
75
|
|
|
76
|
-
if (
|
|
76
|
+
if (version.startsWith('v')) {
|
|
77
77
|
nextVersion = version.slice(1);
|
|
78
78
|
type += `v${version}`;
|
|
79
79
|
} else if (/major|minor|patch/.test(version)) {
|
|
@@ -85,7 +85,7 @@ async function publish({version, info, emitter, dryRun, force}) {
|
|
|
85
85
|
return;
|
|
86
86
|
|
|
87
87
|
const cmd = rendy(Cmd, {
|
|
88
|
-
version,
|
|
88
|
+
version: nextVersion,
|
|
89
89
|
commitType: parseCommitType(info.commitType),
|
|
90
90
|
branch: info.branch || 'master',
|
|
91
91
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wisdom",
|
|
3
|
-
"version": "14.1.
|
|
3
|
+
"version": "14.1.2",
|
|
4
4
|
"author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
|
|
5
5
|
"description": "configurable publish releases to github and npm",
|
|
6
6
|
"homepage": "http://github.com/coderaiser/wisdom",
|