wisdom 14.1.1 → 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 CHANGED
@@ -1,3 +1,8 @@
1
+ 2023.03.07, v14.1.2
2
+
3
+ fix:
4
+ - 5e97d06 wisdom: commitType: when absent set colon
5
+
1
6
  2023.03.07, v14.1.1
2
7
 
3
8
  fix:
package/README.md CHANGED
@@ -77,6 +77,7 @@ $ wisdom
77
77
  Usage: wisdom [patch|minor|major]
78
78
  Options:
79
79
  --dry-run show tasks to run without actually running
80
+ --force do not ask before publishin major
80
81
  -h, --help display this help and exit
81
82
  -v, --version output version information and exit
82
83
  ```
@@ -1,9 +1,7 @@
1
1
  export const PAREN = '(package)';
2
2
  export const COLON = ': package:';
3
3
 
4
- export const parseCommitType = (type) => {
5
- type = type || 'paren';
6
-
4
+ export const parseCommitType = (type = 'colon') => {
7
5
  if (type === 'paren')
8
6
  return PAREN;
9
7
 
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
- name: 'question',
32
- message: `Are you sure that you want to publish major version of '${name}': v${version}?`
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
@@ -3,7 +3,7 @@ import getEnv from './get-env.js';
3
3
 
4
4
  export const publish = ({cwd, version}) => {
5
5
  execute(`npm publish`, version, cwd);
6
- }
6
+ };
7
7
 
8
8
  function execute(cmd, version, cwd) {
9
9
  const stdio = [0, 1, 2, 'pipe'];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wisdom",
3
- "version": "14.1.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",