Skip to content

Commit

Permalink
use pkg-up module
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Sep 21, 2015
1 parent 5baebcc commit 15cd3ef
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
'use strict';
var path = require('path');
var findup = require('findup-sync');
var pkgUp = require('pkg-up');
var multimatch = require('multimatch');
var arrify = require('arrify');

module.exports = function (grunt, opts) {
opts = opts || {};

var pattern = arrify(opts.pattern || ['grunt-*', '@*/grunt-*']);
var config = opts.config || findup('package.json');
var config = opts.config || pkgUp.sync();
var scope = arrify(opts.scope || ['dependencies', 'devDependencies', 'peerDependencies', 'optionalDependencies']);

if (typeof config === 'string') {
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
},
"dependencies": {
"arrify": "^1.0.0",
"findup-sync": "^0.2.1",
"multimatch": "^2.0.0"
"multimatch": "^2.0.0",
"pkg-up": "^1.0.0"
},
"devDependencies": {
"grunt": "^0.4.2",
Expand Down

0 comments on commit 15cd3ef

Please sign in to comment.