Skip to content

Commit 5e493b1

Browse files
authored
Merge pull request #39 from oxodesign/master
Removed exists-sync pkg, using fs.existsSync instead
2 parents a075fce + a655ccb commit 5e493b1

File tree

4 files changed

+661
-33
lines changed

4 files changed

+661
-33
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,4 @@ testem.log
2121
.node_modules.ember-try/
2222
bower.json.ember-try
2323
package.json.ember-try
24+
.idea

index.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ const fs = require('fs');
66
const path = require('path');
77
const dotenv = require('dotenv');
88
const parseArgs = require('minimist');
9-
const existsSync = require('exists-sync');
109

1110
module.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

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
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": {

0 commit comments

Comments
 (0)