From ade11515a9d1fbb2e048e77890ea442d9a9d0ab2 Mon Sep 17 00:00:00 2001 From: Paulo Almeida Date: Fri, 16 Dec 2016 23:47:40 -0200 Subject: [PATCH] Fix #9 --- lib/consign.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/consign.js b/lib/consign.js index ba20d9e..19084a9 100644 --- a/lib/consign.js +++ b/lib/consign.js @@ -131,7 +131,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 12ea7a3..ab31cc3 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "consign", "description": "Autoload your scripts.", - "version": "0.1.3", + "version": "0.1.4", "author": { "name": "Jarrad Seers", "email": "jarrad@seers.me"