Skip to content

Commit

Permalink
Merge pull request #1715 from sibiraj-s/remove-path-is-absolute
Browse files Browse the repository at this point in the history
Remove path-is-absolute dependency
  • Loading branch information
vladikoff authored Jul 7, 2020
2 parents 27bc5d9 + e789b1f commit 9d23cb6
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 9d23cb6

Please sign in to comment.