Skip to content

Commit

Permalink
Remove path-is-absolute dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
sibiraj-s committed Jul 5, 2020
1 parent 27bc5d9 commit e789b1f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions lib/grunt/file.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ file.findup = require('findup-sync');
var YAML = require('js-yaml');
var rimraf = require('rimraf');
var iconv = require('iconv-lite');
var pathIsAbsolute = require('path-is-absolute');
var mkdirp = require('mkdirp').sync;

// Windows?
Expand Down Expand Up @@ -407,7 +406,7 @@ file.isFile = function() {
// Is a given file path absolute?
file.isPathAbsolute = function() {
var filepath = path.join.apply(path, arguments);
return pathIsAbsolute(filepath);
return path.isAbsolute(filepath);
};

// Do all the specified paths refer to the same path?
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@
"minimatch": "~3.0.4",
"mkdirp": "~1.0.4",
"nopt": "~3.0.6",
"path-is-absolute": "~2.0.0",
"rimraf": "~3.0.2"
},
"devDependencies": {
Expand Down

0 comments on commit e789b1f

Please sign in to comment.