yeoman-generator
Advanced tools
Comparing version 0.15.0-pre.2 to 0.15.0-pre.3
@@ -57,2 +57,4 @@ var fs = require('fs'); | ||
require('./env').enforceUpdate(this.env); | ||
this.description = ''; | ||
@@ -59,0 +61,0 @@ |
@@ -103,3 +103,3 @@ var fs = require('fs'); | ||
if (process.env.NODE_PATH) { | ||
process.env.NODE_PATH.split(/[,;]/g).forEach(this.appendPath, this); | ||
_.compact(process.env.NODE_PATH.split(/[;:]/g)).forEach(this.appendPath, this); | ||
return; | ||
@@ -432,1 +432,15 @@ } | ||
}; | ||
/** | ||
* Make sure the Environment present expected methods if an old version is | ||
* passed to a Generator. | ||
* @param {Environment} env | ||
* @return {Environment} The updated env | ||
*/ | ||
Environment.enforceUpdate = function (env) { | ||
if (!env.adapter) { | ||
env.adapter = new TerminalAdapter(); | ||
} | ||
return env; | ||
}; |
{ | ||
"name": "yeoman-generator", | ||
"version": "0.15.0-pre.2", | ||
"version": "0.15.0-pre.3", | ||
"description": "Rails-inspired generator system that provides scaffolding for your apps", | ||
@@ -5,0 +5,0 @@ "license": "BSD", |
282031
2937