Currently, Dyson only loads routes from files with extension .js.
I'd like to express my route files as .ts, in TypeScript.
However, those files are not loaded.
I've traced to loader.js:8 where it calls
const rawConfigs = requireDir(module, path.resolve(configDir));
requireDir itself accepts an optional third parameter which is an object that allows defining which extensions to look for.
Changing it to
const rawConfigs = requireDir(module, path.resolve(configDir), {extensions: ['js','ts']});
Seems to have done the trick.
Is this something that could be somehow added to Dyson?