We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ed6d2b commit bdf0d54Copy full SHA for bdf0d54
src/core/IoC.ts
@@ -188,6 +188,10 @@ class IoC {
188
}
189
190
private getFiles(path: string, done: (files: any[]) => void): void {
191
+ const isTypeScript = __dirname.indexOf('/src/') >= 0;
192
+ if (!isTypeScript) {
193
+ path = path.replace('.ts', '.js');
194
+ }
195
glob(this.getBasePath() + path, (err: any, files: string[]) => {
196
if (err) {
197
log.warn(`Could not read the folder ${path}!`);
0 commit comments