From 2ba06f27dc4cb5d25029b2be2784c0aebbe5f70a Mon Sep 17 00:00:00 2001 From: Philipp Kunz Date: Tue, 24 Nov 2015 18:56:53 +0100 Subject: [PATCH] now using fs-extra for josn --- index.js | 2 +- ts/index.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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; } }