KevinNovak / Discord-Bot-TypeScript-Template

Discord bot - A discord.js bot template written with TypeScript.
MIT License
477 stars 86 forks source link

add barrelsby #53

Closed Kaisarion closed 1 year ago

Kaisarion commented 2 years ago

This PR adds barrelsby as a dynamic way to update index without messiness/redundancy. It's a great way to prevent manual hand-exports especially for bots that use this template with many commands.

KevinNovak commented 2 years ago

This would be very convenient, the only issue I've noticed is that barrelsby doesn't add the ".js" to the end of the file names, which can cause issues with this project since it is an ESM project. image

It looks like there is an open issue with barrelsby for ESM support: bencoveney/barrelsby#178

I think until barrelsby supports ESM I'll leave this PR open.