mirror of https://github.com/embarklabs/embark.git
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);
|
||||
}
|
||||
|
||||
// returns embarks root directory
|
||||
function embarkPath(fileOrDir) {
|
||||
return utils.joinPath(__dirname, '/../../', fileOrDir);
|
||||
function embarkPath() {
|
||||
return utils.joinPath(__dirname, '/../../', ...arguments);
|
||||
}
|
||||
|
||||
function dappPath() {
|
||||
|
|
Loading…
Reference in New Issue