mirror of https://github.com/embarklabs/embark.git
Fix FS to include Embark
This commit is contained in:
parent
edb8c99af3
commit
a65bbabd15
|
@ -12,8 +12,11 @@ const pathConfigs = {
|
||||||
|
|
||||||
function restrictPath(receiver, binding, count, args) {
|
function restrictPath(receiver, binding, count, args) {
|
||||||
const dapp = dappPath();
|
const dapp = dappPath();
|
||||||
|
const embark = embarkPath();
|
||||||
|
|
||||||
const allowedRoots = [
|
const allowedRoots = [
|
||||||
dapp,
|
dapp,
|
||||||
|
embark,
|
||||||
os.tmpdir()
|
os.tmpdir()
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -187,6 +190,7 @@ module.exports = {
|
||||||
mkdirpSync,
|
mkdirpSync,
|
||||||
move,
|
move,
|
||||||
moveSync,
|
moveSync,
|
||||||
|
outputFileSync,
|
||||||
readFile,
|
readFile,
|
||||||
readFileSync,
|
readFileSync,
|
||||||
readJSONSync,
|
readJSONSync,
|
||||||
|
|
Loading…
Reference in New Issue