diff --git a/lib/install.js b/lib/install.js index 94991c49ad..8a615dfb38 100644 --- a/lib/install.js +++ b/lib/install.js @@ -23,7 +23,6 @@ var fs = require('graceful-fs') , log = require('npmlog') , semver = require('semver') , request = require('request') - , minimatch = require('minimatch') , mkdir = require('mkdirp') , processRelease = require('./process-release') , win = process.platform == 'win32' @@ -395,8 +394,8 @@ function install (fs, gyp, argv, callback) { function valid (file) { // header files - return minimatch(file, '*.h', { matchBase: true }) || - minimatch(file, '*.gypi', { matchBase: true }) + var extname = path.extname(file); + return extname === '.h' || extname === '.gypi'; } /** diff --git a/package.json b/package.json index 29bee3d615..a8e5fe9f27 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,6 @@ "dependencies": { "glob": "^7.0.3", "graceful-fs": "^4.1.2", - "minimatch": "^3.0.2", "mkdirp": "^0.5.0", "nopt": "2 || 3", "npmlog": "0 || 1 || 2 || 3 || 4",