now using fs-extra for josn
This commit is contained in:
parent
228f855a39
commit
2ba06f27dc
2
index.js
2
index.js
@ -33,7 +33,7 @@ var smartfile = {
|
||||
}
|
||||
break;
|
||||
case "json":
|
||||
return require(filePath);
|
||||
return plugins.fs.readJsonSync(filePath, {});
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -32,7 +32,7 @@ var smartfile:any = {
|
||||
}
|
||||
break;
|
||||
case "json":
|
||||
return require(filePath);
|
||||
return plugins.fs.readJsonSync(filePath,{});
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user