git-semver-tagger 2.5.0 → 2.5.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/README.md +63 -16
- package/bin/tagger +3 -0
- package/help/calculate-version.md +12 -0
- package/help/tag.md +12 -0
- package/help/tagger-guide.md +35 -0
- package/help/tagger.md +13 -0
- package/kotlin/command-line-tools-tagger-cli.js +19 -13
- package/kotlin/command-line-tools-tagger-cli.js.map +1 -1
- package/kotlin/help/calculate-version.md +12 -0
- package/kotlin/help/tag.md +12 -0
- package/kotlin/help/tagger-guide.md +35 -0
- package/kotlin/help/tagger.md +13 -0
- package/kotlin/kotlin-kotlin-stdlib.js +33 -33
- package/kotlin/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlin/tools-cli-tools.js +15 -13
- package/kotlin/tools-cli-tools.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,15 +1,18 @@
|
|
|
1
|
-
(function (_,
|
|
1
|
+
(function (_, NodePath, NodeFs, process, kotlin_kotlin) {
|
|
2
2
|
'use strict';
|
|
3
3
|
//region block: imports
|
|
4
|
+
var to = kotlin_kotlin.$_$.yf;
|
|
5
|
+
var json = kotlin_kotlin.$_$.ja;
|
|
4
6
|
var until = kotlin_kotlin.$_$.fb;
|
|
5
7
|
var slice = kotlin_kotlin.$_$.j7;
|
|
6
8
|
var copyToArray = kotlin_kotlin.$_$.n5;
|
|
7
|
-
var to = kotlin_kotlin.$_$.yf;
|
|
8
|
-
var json = kotlin_kotlin.$_$.ja;
|
|
9
|
-
var Unit_instance = kotlin_kotlin.$_$.v;
|
|
10
9
|
//endregion
|
|
11
10
|
//region block: pre-declaration
|
|
12
11
|
//endregion
|
|
12
|
+
function loadHelpResource(path) {
|
|
13
|
+
var resourcePath = NodePath.join(__dirname, path);
|
|
14
|
+
return NodeFs.readFileSync(resourcePath, json([to('encoding', 'utf-8')]));
|
|
15
|
+
}
|
|
13
16
|
function platformArgCorrection(args) {
|
|
14
17
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
15
18
|
var argv = process.argv;
|
|
@@ -19,25 +22,24 @@
|
|
|
19
22
|
}
|
|
20
23
|
function readFromFile(fileName) {
|
|
21
24
|
var tmp;
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
// Inline function 'kotlin.js.unsafeCast' call
|
|
25
|
-
tmp = fs.readFileSync(fileName, json([to('encoding', 'utf-8')]));
|
|
25
|
+
if (NodeFs.existsSync(fileName)) {
|
|
26
|
+
tmp = NodeFs.readFileSync(fileName, json([to('encoding', 'utf-8')]));
|
|
26
27
|
} else {
|
|
27
28
|
tmp = null;
|
|
28
29
|
}
|
|
29
30
|
return tmp;
|
|
30
31
|
}
|
|
31
32
|
function writeToFile(_this__u8e3s4, outputFile) {
|
|
32
|
-
|
|
33
|
+
NodeFs.writeFileSync(outputFile, _this__u8e3s4);
|
|
33
34
|
}
|
|
34
35
|
//region block: exports
|
|
35
36
|
_.$_$ = _.$_$ || {};
|
|
36
|
-
_.$_$.a =
|
|
37
|
-
_.$_$.b =
|
|
38
|
-
_.$_$.c =
|
|
37
|
+
_.$_$.a = loadHelpResource;
|
|
38
|
+
_.$_$.b = platformArgCorrection;
|
|
39
|
+
_.$_$.c = readFromFile;
|
|
40
|
+
_.$_$.d = writeToFile;
|
|
39
41
|
//endregion
|
|
40
42
|
return _;
|
|
41
|
-
}(module.exports, require('node:
|
|
43
|
+
}(module.exports, require('node:path'), require('node:fs'), require('node:process'), require('./kotlin-kotlin-stdlib.js')));
|
|
42
44
|
|
|
43
45
|
//# sourceMappingURL=tools-cli-tools.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../../tools/cli-tools/src/jsMain/kotlin/com/zegreatrob/tools/cli/PlatformArgCorrection.kt","../../../../../tagger-cli/build/compileSync/js/main/productionExecutable/kotlin/js/src/kotlin/collectionJs.kt","../../../../../../tools/cli-tools/src/jsMain/kotlin/com/zegreatrob/tools/cli/ReadFromFile.js.kt","../../../../../../tools/cli-tools/src/jsMain/kotlin/com/zegreatrob/tools/cli/WriteToFile.kt"],"sourcesContent":[null,null,null,null],"ignoreList":[],"x_google_ignoreList":[],"names":["platformArgCorrection","args","argv","readFromFile","fileName","writeToFile","<this>","outputFile"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../../../../../tools/cli-tools/src/jsMain/kotlin/com/zegreatrob/tools/cli/LoadHelpResource.js.kt","../../../../../../tools/cli-tools/src/jsMain/kotlin/com/zegreatrob/tools/cli/PlatformArgCorrection.kt","../../../../../tagger-cli/build/compileSync/js/main/productionExecutable/kotlin/js/src/kotlin/collectionJs.kt","../../../../../../tools/cli-tools/src/jsMain/kotlin/com/zegreatrob/tools/cli/ReadFromFile.js.kt","../../../../../../tools/cli-tools/src/jsMain/kotlin/com/zegreatrob/tools/cli/WriteToFile.kt"],"sourcesContent":[null,null,null,null,null],"ignoreList":[],"x_google_ignoreList":[],"names":["loadHelpResource","path","resourcePath","platformArgCorrection","args","argv","readFromFile","fileName","writeToFile","<this>","outputFile"],"mappings":";;;;;;;;;;;2BAIOA,CAAqBC,IAArBD,EAA2C;A,QAC9CE,eAAmB,QAAS,MAAK,SAAL,EAAkB,IAAlB,C;IAC5B,OAAO,MAAO,cAAa,YAAb,EAA2B,KAAK,gBAAc,OAAd,EAAL,CAA3B,C;EAClB,C;gCCDOC,CAA0BC,IAA1BD,EAA8D;A;QACjEE,OAAW,OAAXA,CAAwB,I;;iBACZ,MAAL,IAAK,EAAM,SAAI,IAAJ,CAAS,MAAT,CAAN,C;IAAZ,OCkBkE,YAAY,MAAZ,C;EDjBtE,C;uBELOC,CAAiBC,QAAjBD,EAA8C;A;IAAI,IAAA,MAAO,YAAW,QAAX,CAAP,C;YACrD,MAAO,cAAa,QAAb,EAAuB,KAAK,gBAAc,OAAd,EAAL,CAAvB,C;;YAEP,I;;IACH,U;EAAD,C;sBCNOE,CAAIC,a,EAAmBC,UAAvBF,EAA2C;A,IAC9C,MAAO,eAAc,UAAd,EAA0B,aAA1B,C;EACX,C;;;;;;;;;;"}
|