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 path-is-absolute dependency #1715

Merged
merged 1 commit into from Jul 7, 2020
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 1 addition & 2 deletions lib/grunt/file.js
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
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