make fs.embarkPath more flexible
This commit is contained in:
parent
51ac4ddee8
commit
c60d26e258
|
@ -77,9 +77,8 @@ function removeSync() {
|
||||||
return fs.removeSync.apply(fs.removeSync, arguments);
|
return fs.removeSync.apply(fs.removeSync, arguments);
|
||||||
}
|
}
|
||||||
|
|
||||||
// returns embarks root directory
|
function embarkPath() {
|
||||||
function embarkPath(fileOrDir) {
|
return utils.joinPath(__dirname, '/../../', ...arguments);
|
||||||
return utils.joinPath(__dirname, '/../../', fileOrDir);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function dappPath() {
|
function dappPath() {
|
||||||
|
|
Loading…
Reference in New Issue