Skip to content
This repository has been archived by the owner on Apr 20, 2018. It is now read-only.

Commit

Permalink
Use path-exists
Browse files Browse the repository at this point in the history
Because fs.exists() and fs.existsSync() is being deprecated

https://github.com/sindresorhus/path-exists
  • Loading branch information
arthurvr committed Jun 19, 2015
1 parent 0a89f03 commit 52166c2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/config/concat.js
@@ -1,6 +1,6 @@
'use strict';
var path = require('path');
var fs = require('fs');
var pathExists = require('path-exists');
var _ = require('lodash');

exports.name = 'concat';
Expand All @@ -27,7 +27,7 @@ exports.createConfig = function (context, block) {
if (_.isArray(context.inDir)) {
context.inDir.every(function (d) {
var joinedPath = path.join(d, f);
var joinedPathExists = fs.existsSync(joinedPath);
var joinedPathExists = pathExists.sync(joinedPath);
if (joinedPathExists) {
files.src.push(joinedPath);
}
Expand Down
3 changes: 2 additions & 1 deletion package.json
Expand Up @@ -26,7 +26,8 @@
"dependencies": {
"chalk": "^1.0.0",
"debug": "^2.1.3",
"lodash": "^3.6.0"
"lodash": "^3.6.0",
"path-exists": "^1.0.0"
},
"devDependencies": {
"grunt": "^0.4.5",
Expand Down

0 comments on commit 52166c2

Please sign in to comment.