Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove exists-sync dependency #5432

Merged
merged 1 commit into from
Apr 13, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/calculate-version.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
var path = require('path');
var existsSync = require('exists-sync');
var fs = require('fs');
var gitRepoInfo = require('git-repo-info');
var npmGitInfo = require('npm-git-info');

Expand All @@ -9,7 +9,7 @@ module.exports = function() {
var packageVersion = package.version;
var suffix = '';

if (existsSync(gitPath)) {
if (fs.existsSync(gitPath)) {
var info = gitRepoInfo(gitPath);
if (info.tag) {
return info.tag.replace(/^v/, '');
Expand Down
4 changes: 2 additions & 2 deletions lib/utilities/extend-from-application-entity.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
var stringUtil = require('ember-cli-string-utils');
var SilentError = require('silent-error');
var pathUtil = require('ember-cli-path-utils');
var existsSync = require('exists-sync');
var fs = require('fs');
var path = require('path');

module.exports = function(type, baseClass, options) {
Expand All @@ -15,7 +15,7 @@ module.exports = function(type, baseClass, options) {

var entityDirectory = type + 's';
var applicationEntityPath = path.join(options.project.root, 'app', entityDirectory, 'application.js');
var hasApplicationEntity = existsSync(applicationEntityPath);
var hasApplicationEntity = fs.existsSync(applicationEntityPath);
if (!isAddon && !options.baseClass && entityName !== 'application' && hasApplicationEntity) {
options.baseClass = 'application';
}
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
"ember-cli-version-checker": "^2.1.0",
"ember-inflector": "^2.0.0",
"ember-runtime-enumerable-includes-polyfill": "^2.0.0",
"exists-sync": "0.0.3",
"git-repo-info": "^1.1.2",
"heimdalljs": "^0.3.0",
"inflection": "^1.8.0",
Expand Down