diff --git a/index.js b/index.js index 898d169..7189f56 100644 --- a/index.js +++ b/index.js @@ -33,7 +33,7 @@ var smartfile = { } break; case "json": - return require(filePath); + return plugins.fs.readJsonSync(filePath, {}); break; } } diff --git a/ts/index.ts b/ts/index.ts index 7825afd..e6f2d8f 100644 --- a/ts/index.ts +++ b/ts/index.ts @@ -32,7 +32,7 @@ var smartfile:any = { } break; case "json": - return require(filePath); + return plugins.fs.readJsonSync(filePath,{}); break; } }