From 9e62d9c1a94f4d2adbc6fa1de54e56855ce0873a Mon Sep 17 00:00:00 2001 From: "Michael Bradley, Jr" Date: Mon, 20 Aug 2018 14:07:53 -0500 Subject: [PATCH] isDir test should support possible use of '\' by devs on Windows --- lib/pipeline/pipeline.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pipeline/pipeline.js b/lib/pipeline/pipeline.js index 361aba0f..1f0a742b 100644 --- a/lib/pipeline/pipeline.js +++ b/lib/pipeline/pipeline.js @@ -122,7 +122,7 @@ class Pipeline { return obj; }, {}), function (files, targetFile, cb) { - const isDir = targetFile.slice(-1) === '/' || targetFile.indexOf('.') === -1; + const isDir = targetFile.slice(-1) === '/' || targetFile.slice(-1) === '\\' || targetFile.indexOf('.') === -1; // if it's not a directory if (!isDir) { self.logger.info(__("writing file") + " " + (utils.joinPath(self.buildDir, targetFile)).bold.dim);