create-ern-boilerplate 0.0.32 ā 0.0.33
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/create.js +13 -12
- package/package.json +1 -1
package/create.js
CHANGED
|
@@ -225,19 +225,20 @@ ${chalk.bold("\nš READING ORDER (Urutan Baca yang Direkomendasikan):\n")}
|
|
|
225
225
|
|
|
226
226
|
${chalk.green("Happy coding! š»")}
|
|
227
227
|
`);
|
|
228
|
+
}
|
|
228
229
|
|
|
229
230
|
|
|
230
231
|
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
232
|
+
// === Helper untuk menampilkan daftar template ===
|
|
233
|
+
async function getTemplateChoices() {
|
|
234
|
+
const templatesDir = path.join(__dirname, "templates");
|
|
235
|
+
const folders = await fs.readdir(templatesDir);
|
|
236
|
+
return folders.filter((f) =>
|
|
237
|
+
fs.statSync(path.join(templatesDir, f)).isDirectory()
|
|
238
|
+
);
|
|
239
|
+
}
|
|
239
240
|
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
241
|
+
main().catch((err) => {
|
|
242
|
+
console.error(chalk.red("Terjadi kesalahan:"), err);
|
|
243
|
+
process.exit(1);
|
|
244
|
+
});
|