From 183aba4b6f3cb3afc12be4f1898eb6d9ecc3af66 Mon Sep 17 00:00:00 2001 From: Luis Blanco Date: Sun, 13 May 2018 22:52:47 +0300 Subject: [PATCH] Add root bin path for addons --- index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/index.js b/index.js index b6528ae..b91f738 100644 --- a/index.js +++ b/index.js @@ -58,6 +58,7 @@ const paths = dir => { const includePath = `${nanInclude} ${thisInclude}`; +const binPath = `${rootPath}/${currentDir}`; const mkdirPath = isWindows ? `${rootPath}/_mkdir.bat` : 'mkdir'; const rmPath = isWindows ? `${rootPath}/_rm.bat` : 'rm'; @@ -68,12 +69,14 @@ module.exports = { paths, + binPath, rootPath, includePath, mkdirPath, rmPath, cpPath, + bin() { return console.log(binPath); }, root() { return console.log(rootPath); }, include() { console.log(includePath); },