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 includePath = `${nanInclude} ${thisInclude}`;
|
||||||
|
const binPath = `${rootPath}/${currentDir}`;
|
||||||
|
|
||||||
const mkdirPath = isWindows ? `${rootPath}/_mkdir.bat` : 'mkdir';
|
const mkdirPath = isWindows ? `${rootPath}/_mkdir.bat` : 'mkdir';
|
||||||
const rmPath = isWindows ? `${rootPath}/_rm.bat` : 'rm';
|
const rmPath = isWindows ? `${rootPath}/_rm.bat` : 'rm';
|
||||||
|
@ -68,12 +69,14 @@ module.exports = {
|
||||||
|
|
||||||
paths,
|
paths,
|
||||||
|
|
||||||
|
binPath,
|
||||||
rootPath,
|
rootPath,
|
||||||
includePath,
|
includePath,
|
||||||
mkdirPath,
|
mkdirPath,
|
||||||
rmPath,
|
rmPath,
|
||||||
cpPath,
|
cpPath,
|
||||||
|
|
||||||
|
bin() { return console.log(binPath); },
|
||||||
root() { return console.log(rootPath); },
|
root() { return console.log(rootPath); },
|
||||||
include() { console.log(includePath); },
|
include() { console.log(includePath); },
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue