1
1
var path = require ( 'path' ) ,
2
2
_ = require ( 'lodash' ) ,
3
- config = require ( './lib/config' ) ,
3
+ configModule = require ( './lib/config' ) ,
4
4
detect = require ( './lib/detect' ) ,
5
5
run = require ( './lib/run' ) ,
6
6
createProfiles = require ( './lib/create_profiles' ) ;
@@ -11,7 +11,7 @@ module.exports = function( configFile, callback ) {
11
11
configFile = null ;
12
12
}
13
13
14
- config . read ( configFile , function ( err , config , configDir ) {
14
+ configModule . read ( configFile , function ( err , config , configDir ) {
15
15
if ( ! config ) {
16
16
module . exports . update ( configDir , function ( err , config ) {
17
17
if ( err ) {
@@ -65,7 +65,7 @@ module.exports.detect = function( callback ) {
65
65
module . exports . update = function ( configDir , callback ) {
66
66
if ( typeof configDir === 'function' ) {
67
67
callback = configDir ;
68
- configDir = path . dirname ( config . defaultConfigFile ) ;
68
+ configDir = path . dirname ( configModule . defaultConfigFile ) ;
69
69
}
70
70
71
71
detect ( function ( available ) {
@@ -78,7 +78,7 @@ module.exports.update = function( configDir, callback ) {
78
78
browsers : available
79
79
} ;
80
80
81
- config . write ( config , function ( err ) {
81
+ configModule . write ( config , function ( err ) {
82
82
if ( err ) {
83
83
callback ( err ) ;
84
84
} else {
@@ -89,4 +89,4 @@ module.exports.update = function( configDir, callback ) {
89
89
} ) ;
90
90
} ;
91
91
92
- module . exports . config = config ;
92
+ module . exports . config = configModule ;
0 commit comments