diff --git a/common.js b/common.js index fc193ee6..896f1c3d 100644 --- a/common.js +++ b/common.js @@ -13,7 +13,7 @@ function ownProp (obj, field) { var fs = require("fs") var path = require("path") var minimatch = require("minimatch") -var isAbsolute = require("path-is-absolute") +var isAbsolute = require("path").isAbsolute var Minimatch = minimatch.Minimatch function alphasort (a, b) { diff --git a/glob.js b/glob.js index 37a4d7e6..2112a957 100644 --- a/glob.js +++ b/glob.js @@ -47,7 +47,7 @@ var inherits = require('inherits') var EE = require('events').EventEmitter var path = require('path') var assert = require('assert') -var isAbsolute = require('path-is-absolute') +var isAbsolute = require('path').isAbsolute var globSync = require('./sync.js') var common = require('./common.js') var setopts = common.setopts diff --git a/package-lock.json b/package-lock.json index e6b5f316..acd5c613 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13,8 +13,7 @@ "inflight": "^1.0.4", "inherits": "2", "minimatch": "^5.0.1", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" + "once": "^1.3.0" }, "devDependencies": { "memfs": "^3.2.0", @@ -2073,6 +2072,7 @@ "version": "1.0.1", "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", + "dev": true, "engines": { "node": ">=0.10.0" } @@ -6476,7 +6476,8 @@ "path-is-absolute": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", - "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=" + "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", + "dev": true }, "path-key": { "version": "3.1.1", diff --git a/package.json b/package.json index 54940cbe..99a7483f 100644 --- a/package.json +++ b/package.json @@ -21,8 +21,7 @@ "inflight": "^1.0.4", "inherits": "2", "minimatch": "^5.0.1", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" + "once": "^1.3.0" }, "devDependencies": { "memfs": "^3.2.0", diff --git a/sync.js b/sync.js index c705a9c0..f9185494 100644 --- a/sync.js +++ b/sync.js @@ -8,7 +8,7 @@ var Glob = require('./glob.js').Glob var util = require('util') var path = require('path') var assert = require('assert') -var isAbsolute = require('path-is-absolute') +var isAbsolute = require('path').isAbsolute var common = require('./common.js') var setopts = common.setopts var ownProp = common.ownProp diff --git a/test/absolute.js b/test/absolute.js index 704caa90..68c81191 100644 --- a/test/absolute.js +++ b/test/absolute.js @@ -4,7 +4,7 @@ var glob = require('../') var common = require('../common.js') var pattern = 'a/b/**'; var bashResults = require('./bash-results.json') -var isAbsolute = require('path-is-absolute') +var isAbsolute = require('path').isAbsolute process.chdir(__dirname + '/fixtures') t.Test.prototype.addAssert('isAbsolute', 1, function (file, message, extra) { diff --git a/test/bash-comparison.js b/test/bash-comparison.js index 25304bec..01a52452 100644 --- a/test/bash-comparison.js +++ b/test/bash-comparison.js @@ -7,7 +7,7 @@ var bashResults = require("./bash-results.json") var globs = Object.keys(bashResults) var glob = require("../") var path = require("path") -var isAbsolute = require("path-is-absolute") +var isAbsolute = require("path").isAbsolute // run from the root of the project // this is usually where you're at anyway, but be sure. diff --git a/test/cwd-test.js b/test/cwd-test.js index 8f81a6ed..6528a47e 100644 --- a/test/cwd-test.js +++ b/test/cwd-test.js @@ -4,7 +4,7 @@ var tap = require("tap") var origCwd = process.cwd() process.chdir(__dirname + '/fixtures') var path = require('path') -var isAbsolute = require('path-is-absolute') +var isAbsolute = require('path').isAbsolute var glob = require('../') function cacheCheck(g, t) {