Fixes tslint failures in dev-infra directory as the directory is now part of the tslint enforced files. PR Close #37233
		
			
				
	
	
		
			18 lines
		
	
	
		
			413 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			413 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
/**
 | 
						|
 * @license
 | 
						|
 * Copyright Google LLC All Rights Reserved.
 | 
						|
 *
 | 
						|
 * Use of this source code is governed by an MIT-style license that can be
 | 
						|
 * found in the LICENSE file at https://angular.io/license
 | 
						|
 */
 | 
						|
 | 
						|
/** Whether ts-node has been installed and is available to ng-dev. */
 | 
						|
export function isTsNodeAvailable(): boolean {
 | 
						|
  try {
 | 
						|
    require.resolve('ts-node');
 | 
						|
    return true;
 | 
						|
  } catch {
 | 
						|
    return false;
 | 
						|
  }
 | 
						|
}
 |