Skip to content

Commit 1e2fc9c

Browse files
committed
fixed rcs.helper to json-extra
1 parent a220c30 commit 1e2fc9c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

index.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ const rcs = require('rcs-core');
44
const fs = require('fs-extra');
55
const path = require('path');
66
const glob = require('glob');
7+
const json = require('json-extra');
78
const async = require('async');
89
const _ = require('lodash');
910

@@ -233,11 +234,11 @@ renameCssSelectors.includeConfig = (pathString) => {
233234
let configObject;
234235

235236
pathString = pathString || path.join(process.cwd(), '.rcsrc');
236-
configObject = rcs.helper.readJsonToObjSync(pathString);
237+
configObject = json.readToObjSync(pathString);
237238

238239
if (!configObject) {
239240
// package.json .rcs if no other config is found
240-
configObject = rcs.helper.readJsonToObjSync(path.join(process.cwd(), 'package.json')).rcs;
241+
configObject = json.readToObjSync(path.join(process.cwd(), 'package.json')).rcs;
241242
}
242243

243244
if (configObject.exclude) {

0 commit comments

Comments
 (0)