mirror of
https://github.com/embarklabs/embark.git
synced 2025-02-20 01:18:52 +00:00
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…
x
Reference in New Issue
Block a user