| 
									
										
										
										
											2015-06-05 23:37:09 -07:00
										 |  |  | #!/usr/bin/env node | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | var checkNpm = require('./check-node-modules.js'); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-12-21 14:50:56 -08:00
										 |  |  | var purgeIfStale = (process.argv.indexOf('--purge') !== -1); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | // check-node-modules will exit(1) if we don't need to install to short-circuit `npm install` | 
					
						
							|  |  |  | // see .travis.yml's `install` block to see the reason for this | 
					
						
							|  |  |  | process.exit(checkNpm(true, purgeIfStale) ? 1 : 0); | 
					
						
							| 
									
										
										
										
											2015-06-05 23:37:09 -07:00
										 |  |  | 
 |