@massimo-cassandro/minimo 1.23.0 → 1.24.0
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.
|
@@ -52,6 +52,11 @@ async function run() {
|
|
|
52
52
|
params.updateMode = choice; // modalità scelta (init, major, minor o patch)
|
|
53
53
|
updateSemver();
|
|
54
54
|
|
|
55
|
+
// Se noLogv0 è true e la major version è 0, il log non viene registrato (eccetto per l'inizializzazione)
|
|
56
|
+
if (params.noLogv0 && params.updateMode !== 'init' && params.semverArray[0] === 0) {
|
|
57
|
+
params.addLog = false;
|
|
58
|
+
}
|
|
59
|
+
|
|
55
60
|
params.logRow.vers = params.newSemver;
|
|
56
61
|
|
|
57
62
|
// Scrive il log, se richiesto
|
|
@@ -10,7 +10,7 @@ export const params = {
|
|
|
10
10
|
debug: false, // solo sviluppo, non aggiorna nulla ma mostra l'output finale
|
|
11
11
|
|
|
12
12
|
addLog: true, // modificato in base alla scelta del tipo di aggironamento e del valore di toLog
|
|
13
|
-
|
|
13
|
+
noLogv0: true, // se true e la major version è 0 il log non viene registrato (ad esclusione dell'inizializzazione del file)
|
|
14
14
|
|
|
15
15
|
// preRealeaseTags: ['alpha', 'beta', 'rc'],
|
|
16
16
|
logRow: {
|