Skip to content

Commit

Permalink
fix(constructor): fix entityPath resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
ppvg committed Oct 29, 2016
1 parent 2b1dfd4 commit e87fb8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Wetland.ts
Expand Up @@ -82,7 +82,7 @@ export class Wetland {
.filter(match => match.search(/\.js$/) > -1) .filter(match => match.search(/\.js$/) > -1)
.map(entity => entity.replace(/\.js$/, '')) .map(entity => entity.replace(/\.js$/, ''))
.forEach(entity => { .forEach(entity => {
let filePath = path.join(entityPath, entity); let filePath = path.resolve(entityPath, entity);
let ToRegister = require(filePath); let ToRegister = require(filePath);


if (typeof ToRegister !== 'function') { if (typeof ToRegister !== 'function') {
Expand Down

0 comments on commit e87fb8e

Please sign in to comment.