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
This commit is contained in:
Jonas Hermsmeier 2017-11-16 20:04:50 +01:00 committed by Juan Cruz Viotti
parent 55d043a626
commit bb4e6c74e0

View File

@ -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