File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 1
1
/* jshint node: true */
2
2
'use strict' ;
3
3
4
+ var config = require ( './models/config' ) ;
5
+
4
6
module . exports = {
5
7
name : 'ng2' ,
8
+
9
+ config : function ( ) {
10
+ this . project . ngConfig = this . project . ngConfig || config . CliConfig . fromProject ( ) ;
11
+ } ,
12
+
6
13
includedCommands : function ( ) {
7
14
return {
8
15
'new' : require ( './commands/new' ) ,
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ export interface CliConfigJson {
13
13
14
14
function _findUp ( name : string , from : string ) {
15
15
let currentDir = from ;
16
- while ( currentDir && currentDir != '/' ) {
16
+ while ( currentDir && currentDir !== path . parse ( currentDir ) . root ) {
17
17
const p = path . join ( currentDir , name ) ;
18
18
if ( fs . existsSync ( p ) ) {
19
19
return p ;
You can’t perform that action at this time.
0 commit comments