Skip to content

Commit

Permalink
fix(all): rely on path for loading config files to allow overrides an…
Browse files Browse the repository at this point in the history
…d use path helper
  • Loading branch information
Vheissu committed Mar 3, 2016
1 parent 798e410 commit 608d147
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/configure.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import {inject} from 'aurelia-dependency-injection';
import {join} from 'aurelia-path';
import {Loader} from 'aurelia-loader';

@inject(Loader)
Expand Down Expand Up @@ -291,7 +292,7 @@ export class Configure {
* @returns {Promise}
*/
loadConfig() {
return this.loader.loadText(`${this.directory}/${this.config}`)
return this.loader.loadText(join(this.directory, this.config))
.catch(() => {
throw new Error('Configuration file could not be found or loaded.')
});
Expand Down

0 comments on commit 608d147

Please sign in to comment.