Skip to content

Commit 5d14cf5

Browse files
authored
Merge pull request ember-fastboot#201 from SergeAstapov/remove-exists-sync
Remove usage of deprecated exists-sync
2 parents eeccf23 + 0ec6425 commit 5d14cf5

File tree

3 files changed

+1
-5
lines changed

3 files changed

+1
-5
lines changed

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
"chalk": "^2.0.1",
3030
"cookie": "^0.3.1",
3131
"debug": "^3.0.0",
32-
"exists-sync": "0.0.4",
3332
"najax": "^1.0.2",
3433
"rsvp": "^4.7.0",
3534
"simple-dom": "^1.0.0",

src/ember-app.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ const chalk = require('chalk');
66

77
const najax = require('najax');
88
const SimpleDOM = require('simple-dom');
9-
const existsSync = require('exists-sync');
109
const debug = require('debug')('fastboot:ember-app');
1110

1211
const FastBootInfo = require('./fastboot-info');
@@ -123,7 +122,7 @@ class EmberApp {
123122
if (whitelist.indexOf(moduleName) > -1) {
124123
let nodeModulesPath = path.join(distPath, 'node_modules', moduleName);
125124

126-
if (existsSync(nodeModulesPath)) {
125+
if (fs.existsSync(nodeModulesPath)) {
127126
return require(nodeModulesPath);
128127
} else {
129128
// If it's not on disk, assume it's a built-in node package

test/fixtures/custom-sandbox/custom-sandbox.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
'use strict';
22

33
const vm = require('vm');
4-
const fs = require('fs');
5-
const existsSync = require('exists-sync');
64
const Sandbox = require('./../../../src/sandbox');
75

86
/**

0 commit comments

Comments
 (0)