Skip to content

Commit

Permalink
remove dot-access dependency, use _.get instead
Browse files Browse the repository at this point in the history
  • Loading branch information
tminglei committed Aug 8, 2015
1 parent a65c799 commit e40361d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
var path = require('path');
var utils = require('./utils');
var _ = require('lodash');
var dotAccess = require('dot-access');

var _workdir = process.cwd();

Expand Down Expand Up @@ -104,7 +103,7 @@ function browserifyBower(browserify, options) {
if (options.workdir) _workdir = options.workdir;
if (options.conf) {
var confjson = require(path.join(_workdir, options.conf));
options = options.confnode && dotAccess.get(confjson, options.confnode) || confjson;
options = options.confnode && _.get(confjson, options.confnode) || confjson;
}
// if no reqiure configs are specified, let it include all components.
options.require = options.require || utils.componentNames(_workdir);
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@
"author": "Minglei Tu <[email protected]>",
"license": "MIT",
"dependencies": {
"dot-access": "~1.0.0",
"lodash": "~3.9.1"
"lodash": "~3.10.1"
},
"devDependencies": {
"browserify": "~10.2.1",
Expand Down

0 comments on commit e40361d

Please sign in to comment.