From 608d147664babba85753bc8e6844e500129a3f58 Mon Sep 17 00:00:00 2001 From: Dwayne Charrington Date: Thu, 3 Mar 2016 15:08:33 +1000 Subject: [PATCH] fix(all): rely on path for loading config files to allow overrides and use path helper --- src/configure.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/configure.js b/src/configure.js index 4e7b0d9..d6032f4 100644 --- a/src/configure.js +++ b/src/configure.js @@ -1,4 +1,5 @@ import {inject} from 'aurelia-dependency-injection'; +import {join} from 'aurelia-path'; import {Loader} from 'aurelia-loader'; @inject(Loader) @@ -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.') });