File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ const rcs = require('rcs-core');
44const fs = require ( 'fs-extra' ) ;
55const path = require ( 'path' ) ;
66const glob = require ( 'glob' ) ;
7+ const json = require ( 'json-extra' ) ;
78const async = require ( 'async' ) ;
89const _ = 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 ) {
You can’t perform that action at this time.
0 commit comments