Skip to content

Commit e789b1f

Browse files
committed
Remove path-is-absolute dependency
1 parent 27bc5d9 commit e789b1f

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

lib/grunt/file.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ file.findup = require('findup-sync');
1616
var YAML = require('js-yaml');
1717
var rimraf = require('rimraf');
1818
var iconv = require('iconv-lite');
19-
var pathIsAbsolute = require('path-is-absolute');
2019
var mkdirp = require('mkdirp').sync;
2120

2221
// Windows?
@@ -407,7 +406,7 @@ file.isFile = function() {
407406
// Is a given file path absolute?
408407
file.isPathAbsolute = function() {
409408
var filepath = path.join.apply(path, arguments);
410-
return pathIsAbsolute(filepath);
409+
return path.isAbsolute(filepath);
411410
};
412411

413412
// Do all the specified paths refer to the same path?

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@
5151
"minimatch": "~3.0.4",
5252
"mkdirp": "~1.0.4",
5353
"nopt": "~3.0.6",
54-
"path-is-absolute": "~2.0.0",
5554
"rimraf": "~3.0.2"
5655
},
5756
"devDependencies": {

0 commit comments

Comments
 (0)