From bb4e6c74e0c17627d954e04e75d5fb51387cc4c0 Mon Sep 17 00:00:00 2001 From: Jonas Hermsmeier Date: Thu, 16 Nov 2017 20:04:50 +0100 Subject: [PATCH] fix(child-writer): Ensure tmpdir path has trailing slash (#1849) There's a bug in node-ipc which doesn't allow it to handle tmpdirs without trailing slashes; this works around this bug. Change-Type: patch --- lib/child-writer/constants.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/child-writer/constants.js b/lib/child-writer/constants.js index 86aca7bf..9301d7c0 100644 --- a/lib/child-writer/constants.js +++ b/lib/child-writer/constants.js @@ -31,7 +31,7 @@ module.exports = { * @memberof CONSTANTS * @constant */ - TMP_DIRECTORY: process.env.XDG_RUNTIME_DIR || os.tmpdir(), + TMP_DIRECTORY: path.join(process.env.XDG_RUNTIME_DIR || os.tmpdir(), path.sep), /** * @property {String} PROJECT_ROOT