version-io 6.1.0 → 6.1.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.
- package/ChangeLog +10 -0
- package/lib/version.js +3 -3
- package/package.json +1 -1
package/ChangeLog
CHANGED
package/lib/version.js
CHANGED
|
@@ -4,15 +4,15 @@ import _writejson from 'writejson';
|
|
|
4
4
|
import minor from 'minor';
|
|
5
5
|
import {packageUp as _packageUp} from 'package-up';
|
|
6
6
|
|
|
7
|
-
export const updateVersion = async (version, overrides) => {
|
|
8
|
-
assert(version, 'version could not be empty!');
|
|
9
|
-
|
|
7
|
+
export const updateVersion = async (version, overrides = {}) => {
|
|
10
8
|
const {
|
|
11
9
|
packageUp = _packageUp,
|
|
12
10
|
readjson = _readjson,
|
|
13
11
|
writejson = _writejson,
|
|
14
12
|
} = overrides;
|
|
15
13
|
|
|
14
|
+
assert(version, 'version could not be empty!');
|
|
15
|
+
|
|
16
16
|
const name = await packageUp();
|
|
17
17
|
const json = await readjson(name);
|
|
18
18
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "version-io",
|
|
3
|
-
"version": "6.1.
|
|
3
|
+
"version": "6.1.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
|
|
6
6
|
"description": "Semantic versioning tool. Apply major, minor, patch and version to package.json.",
|