diff --git a/lib/consign.js b/lib/consign.js index e25dfc5..fa2c870 100644 --- a/lib/consign.js +++ b/lib/consign.js @@ -127,7 +127,7 @@ Consign.prototype._setLocations = function(parent, entity, push) { */ Consign.prototype._getRelativeTo = function(location) { - return '.' + location.split(this._options.cwd, 2)[1]; + return '.' + location.split(this._options.cwd).pop(); }; /** diff --git a/package.json b/package.json index bc12f12..657e26c 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "consign", "description": "Autoload your scripts.", - "version": "0.1.5", + "version": "0.1.6", "author": { "name": "Jarrad Seers", "email": "jarrad@seers.me"