Skip to content

Commit

Permalink
fix(setConfig): 修复setConfig中上下文环境不对
Browse files Browse the repository at this point in the history
  • Loading branch information
yuhaoju committed Jul 14, 2016
1 parent b72750e commit 2c12155
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/models/Project.js
Expand Up @@ -36,9 +36,9 @@ class Project {
let userConfig = {
cwd: this.cwd,
_manager: Manager,
setConfig: function(conf) {
extnd(true, this.config.getConfig(), conf);
},
setConfig: ((conf) => {
extend(true, this.config.getConfig(), conf);
}),
setExports: this.config.setExports.bind(this.config),
config: this.config.getConfig(),
commands: this.commands,
Expand Down Expand Up @@ -214,7 +214,7 @@ class Project {
let statsInfo = stats.toJson({
errorDetails: false
});

if (statsInfo.errors.length > 0) {
statsInfo.errors.map((err) => {
error(err.red);
Expand Down

0 comments on commit 2c12155

Please sign in to comment.