Add root bin path for addons
This commit is contained in:
parent
69f2775fc0
commit
183aba4b6f
3
index.js
3
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); },
|
||||
|
||||
|
|
Loading…
Reference in New Issue