From bbff7403fbf46f9ad92240ac213df8d30ef31b64 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Thu, 20 Sep 2018 02:56:13 +0200 Subject: update packages --- node_modules/parse-filepath/index.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'node_modules/parse-filepath/index.js') diff --git a/node_modules/parse-filepath/index.js b/node_modules/parse-filepath/index.js index fce6f2c3a..0df01700c 100644 --- a/node_modules/parse-filepath/index.js +++ b/node_modules/parse-filepath/index.js @@ -53,7 +53,12 @@ module.exports = function(filepath) { }); define(obj, 'dir', function() { - return path.dirname(filepath); + var dir = path.dirname(filepath); + if (dir === '.') { + return (filepath[0] === '.') ? dir : ''; + } else { + return dir; + } }); define(obj, 'dirname', function() { -- cgit v1.2.3