From 366622c258ae3ed3e421a5b8cffc8b0e370c750c Mon Sep 17 00:00:00 2001 From: Elison Queiroz Date: Thu, 13 Apr 2023 23:21:32 +0100 Subject: [PATCH] Add support for TypeScript files --- lib/loader.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/loader.js b/lib/loader.js index eed650f..8620326 100644 --- a/lib/loader.js +++ b/lib/loader.js @@ -5,7 +5,7 @@ const path = require('path'); const methods = ['get', 'post', 'put', 'delete', 'patch', 'options', 'head']; const load = configDir => { - const rawConfigs = requireDir(module, path.resolve(configDir)); + const rawConfigs = requireDir(module, path.resolve(configDir), { extensions: ['js', 'ts'] }); return _.flattenDeep(findRecursive(rawConfigs)); };