Skip to content

Commit

Permalink
Fixed TypeScript resource directory loading.
Browse files Browse the repository at this point in the history
  • Loading branch information
weekens committed Oct 9, 2017
1 parent a37d8a4 commit a72d1b3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
### v 1.2.2:
- Fixed TypeScript resource directory loading.

### v 1.2.1:
- Independent logging for each actor.
- Adjusted TypeScript typings.
Expand Down
2 changes: 1 addition & 1 deletion lib/actor-system.js
Original file line number Diff line number Diff line change
Expand Up @@ -822,7 +822,7 @@ class ActorSystem {
});
}
else if (_.isString(resources)) {
return P.resolve(_.values(this.requireDirectory(resources)));
return P.resolve(_.map(this.requireDirectory(resources), module => module.default || module));
}
else {
return P.reject(new Error('Illegal value for "resources" option.'));
Expand Down

0 comments on commit a72d1b3

Please sign in to comment.