yeoman-environment
Advanced tools
Comparing version 1.5.2 to 1.5.3
@@ -112,13 +112,2 @@ 'use strict'; | ||
// Walk up the CWD and add `node_modules/` folder lookup on each level | ||
process.cwd().split(path.sep).forEach(function (part, i, parts) { | ||
var lookup = path.join.apply(path, parts.slice(0, i + 1).concat(['node_modules'])); | ||
if (!win32) { | ||
lookup = '/' + lookup; | ||
} | ||
paths.push(lookup); | ||
}); | ||
// Adding global npm directories | ||
@@ -145,2 +134,13 @@ // We tried using npm to get the global modules path, but it haven't work out | ||
// Walk up the CWD and add `node_modules/` folder lookup on each level | ||
process.cwd().split(path.sep).forEach(function (part, i, parts) { | ||
var lookup = path.join.apply(path, parts.slice(0, i + 1).concat(['node_modules'])); | ||
if (!win32) { | ||
lookup = '/' + lookup; | ||
} | ||
paths.push(lookup); | ||
}); | ||
return paths.reverse(); | ||
@@ -147,0 +147,0 @@ }; |
{ | ||
"name": "yeoman-environment", | ||
"version": "1.5.2", | ||
"version": "1.5.3", | ||
"description": "Handles the lifecyle and bootstrapping of generators in a specific environment", | ||
@@ -5,0 +5,0 @@ "homepage": "http://yeoman.io", |
@@ -1,3 +0,5 @@ | ||
# Yeoman Environment [![npm](https://badge.fury.io/js/yeoman-environment.svg)](http://badge.fury.io/js/yeoman-environment) [![Build Status](https://travis-ci.org/yeoman/generator.svg?branch=master)](https://travis-ci.org/yeoman/environment) [![Coverage Status](https://coveralls.io/repos/yeoman/environment/badge.svg?branch=master&service=github)](https://coveralls.io/github/yeoman/environment?branch=master) | ||
# Yeoman Environment | ||
[![npm](https://badge.fury.io/js/yeoman-environment.svg)](http://badge.fury.io/js/yeoman-environment) [![Build Status](https://travis-ci.org/yeoman/generator.svg?branch=master)](https://travis-ci.org/yeoman/environment) [![Coverage Status](https://coveralls.io/repos/yeoman/environment/badge.svg?branch=master&service=github)](https://coveralls.io/github/yeoman/environment?branch=master) [![Gitter](https://img.shields.io/badge/Gitter-Join_the_Yeoman_chat_%E2%86%92-00d06f.svg)](https://gitter.im/yeoman/yeoman) | ||
> Handles the lifecycle and bootstrapping of generators in a specific environment | ||
@@ -4,0 +6,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
31994
39