File tree Expand file tree Collapse file tree 4 files changed +661
-33
lines changed
Expand file tree Collapse file tree 4 files changed +661
-33
lines changed Original file line number Diff line number Diff line change @@ -21,3 +21,4 @@ testem.log
2121.node_modules.ember-try /
2222bower.json.ember-try
2323package.json.ember-try
24+ .idea
Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ const fs = require('fs');
66const path = require ( 'path' ) ;
77const dotenv = require ( 'dotenv' ) ;
88const parseArgs = require ( 'minimist' ) ;
9- const existsSync = require ( 'exists-sync' ) ;
109
1110module . exports = {
1211 name : 'ember-cli-dotenv' ,
@@ -27,11 +26,11 @@ module.exports = {
2726 clientAllowedKeys : [ ]
2827 } ;
2928
30- if ( existsSync ( configFactory ) ) {
29+ if ( fs . existsSync ( configFactory ) ) {
3130 Object . assign ( options , require ( configFactory ) ( this . _resolveEnvironment ( ) ) ) ;
3231 }
3332
34- if ( existsSync ( options . path ) && dotenv . config ( { path : options . path } ) ) {
33+ if ( fs . existsSync ( options . path ) && dotenv . config ( { path : options . path } ) ) {
3534 let loadedConfig = dotenv . parse ( fs . readFileSync ( options . path ) ) ;
3635 let allowedKeys = options . clientAllowedKeys || [ ] ;
3736
Original file line number Diff line number Diff line change 2626 "dependencies" : {
2727 "dotenv" : " ^4.0.0" ,
2828 "ember-cli-babel" : " ^6.6.0" ,
29- "exists-sync" : " 0.0.4" ,
3029 "minimist" : " ^1.2.0"
3130 },
3231 "devDependencies" : {
You can’t perform that action at this time.
0 commit comments