| 
									
										
										
										
											2016-11-24 23:21:40 +01:00
										 |  |  | import * as q from 'q' | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | import * as plugins from './npmci.plugins' | 
					
						
							|  |  |  | import * as paths from './npmci.paths' | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | export interface INpmciOptions { | 
					
						
							| 
									
										
										
										
											2017-03-08 14:50:41 +01:00
										 |  |  |   globalNpmTools: string[] | 
					
						
							| 
									
										
										
										
											2016-11-24 23:21:40 +01:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-03-08 14:50:41 +01:00
										 |  |  | export let getConfig = async (): Promise<INpmciOptions> => { | 
					
						
							|  |  |  |   let npmciNpmextra = new plugins.npmextra.Npmextra(paths.cwd) | 
					
						
							|  |  |  |   let defaultConfig: INpmciOptions = { | 
					
						
							|  |  |  |     globalNpmTools: [] | 
					
						
							|  |  |  |   } | 
					
						
							|  |  |  |   let npmciConfig = npmciNpmextra.dataFor<INpmciOptions>('npmci', defaultConfig) | 
					
						
							|  |  |  |   return npmciConfig | 
					
						
							| 
									
										
										
										
											2016-11-24 23:21:40 +01:00
										 |  |  | } |