lapeeh 1.0.7 → 1.0.9
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/bin/index.js +1 -2
- package/package.json +1 -1
- package/scripts/release.js +30 -5
package/bin/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
1
|
+
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
const fs = require("fs");
|
|
4
4
|
const path = require("path");
|
|
@@ -522,7 +522,6 @@ async function upgradeProject() {
|
|
|
522
522
|
}
|
|
523
523
|
|
|
524
524
|
const filesToSync = [
|
|
525
|
-
"lib",
|
|
526
525
|
"docker-compose.yml",
|
|
527
526
|
".env.example",
|
|
528
527
|
".vscode",
|
package/package.json
CHANGED
package/scripts/release.js
CHANGED
|
@@ -256,17 +256,26 @@ async function main() {
|
|
|
256
256
|
sections.push(isId ? '### 📚 Dokumentasi' : '### 📚 Documentation');
|
|
257
257
|
categorized.docs.forEach(m => sections.push(`* ${m}`));
|
|
258
258
|
}
|
|
259
|
+
if (categorized && categorized.chore && categorized.chore.length > 0) {
|
|
260
|
+
sections.push(isId ? '### 🔧 Tugas & Pemeliharaan' : '### 🔧 Tasks & Chores');
|
|
261
|
+
categorized.chore.forEach(m => sections.push(`* ${m}`));
|
|
262
|
+
}
|
|
259
263
|
if (categorized && categorized.other && categorized.other.length > 0) {
|
|
260
|
-
sections.push(isId ? '###
|
|
264
|
+
sections.push(isId ? '### � Lainnya' : '### � Others');
|
|
261
265
|
categorized.other.forEach(m => sections.push(`* ${m}`));
|
|
262
266
|
}
|
|
263
267
|
|
|
264
268
|
// Fallback
|
|
265
269
|
if (sections.length === 0) {
|
|
266
|
-
|
|
270
|
+
if (raw && raw.length > 0) {
|
|
271
|
+
sections.push(isId ? '### 📋 Daftar Perubahan' : '### 📋 Changelog');
|
|
272
|
+
raw.forEach(m => sections.push(`* ${m}`));
|
|
273
|
+
} else {
|
|
274
|
+
return isId ? '* Pemeliharaan rutin dan pembaruan dependensi.' : '* Routine maintenance and dependency updates.';
|
|
275
|
+
}
|
|
267
276
|
}
|
|
268
277
|
|
|
269
|
-
return sections.join('\n');
|
|
278
|
+
return sections.join('\n\n');
|
|
270
279
|
};
|
|
271
280
|
|
|
272
281
|
if (parsedID) {
|
|
@@ -277,7 +286,15 @@ async function main() {
|
|
|
277
286
|
featureListID = parsedID.features;
|
|
278
287
|
} else {
|
|
279
288
|
console.log('⚠️ No entry in doc/id/CHANGELOG.md, using git logs...');
|
|
280
|
-
|
|
289
|
+
|
|
290
|
+
if (categorized && categorized.feat && categorized.feat.length > 0) {
|
|
291
|
+
titleID = 'Fitur Baru & Peningkatan';
|
|
292
|
+
} else if (categorized && categorized.fix && categorized.fix.length > 0) {
|
|
293
|
+
titleID = 'Perbaikan Bug & Peningkatan Stabilitas';
|
|
294
|
+
} else {
|
|
295
|
+
titleID = 'Rilis Pemeliharaan & Update Rutin';
|
|
296
|
+
}
|
|
297
|
+
|
|
281
298
|
descriptionID = (categorized && categorized.feat && categorized.feat.length > 0)
|
|
282
299
|
? `Menghadirkan: ${categorized.feat.slice(0, 2).map(f => f.replace(/^feat: ?/i, '')).join(', ')}`
|
|
283
300
|
: 'Pembaruan rutin dan perbaikan bug.';
|
|
@@ -293,7 +310,15 @@ async function main() {
|
|
|
293
310
|
featureListEN = parsedEN.features;
|
|
294
311
|
} else {
|
|
295
312
|
console.log('⚠️ No entry in doc/en/CHANGELOG.md, using git logs...');
|
|
296
|
-
|
|
313
|
+
|
|
314
|
+
if (categorized && categorized.feat && categorized.feat.length > 0) {
|
|
315
|
+
titleEN = 'New Features & Improvements';
|
|
316
|
+
} else if (categorized && categorized.fix && categorized.fix.length > 0) {
|
|
317
|
+
titleEN = 'Bug Fixes & Stability Improvements';
|
|
318
|
+
} else {
|
|
319
|
+
titleEN = 'Maintenance Release & Routine Updates';
|
|
320
|
+
}
|
|
321
|
+
|
|
297
322
|
descriptionEN = (categorized && categorized.feat && categorized.feat.length > 0)
|
|
298
323
|
? `Featuring: ${categorized.feat.slice(0, 2).map(f => f.replace(/^feat: ?/i, '')).join(', ')}`
|
|
299
324
|
: 'Routine maintenance and bug fixes.';
|