You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
	
	
		
			15 lines
		
	
	
		
			427 B
		
	
	
	
		
			TypeScript
		
	
		
		
			
		
	
	
			15 lines
		
	
	
		
			427 B
		
	
	
	
		
			TypeScript
		
	
| 
											7 years ago
										 | // tslint:disable no-console
 | ||
|  | 
 | ||
|  | import { join } from 'path'; | ||
|  | import { writeFileSync } from 'fs'; | ||
|  | 
 | ||
|  | import { ExceptionType } from './types'; | ||
|  | import { loadJSON, sortExceptions } from './util'; | ||
|  | 
 | ||
|  | const exceptionsPath = join(__dirname, 'exceptions.json'); | ||
|  | const exceptions: Array<ExceptionType> = loadJSON(exceptionsPath); | ||
|  | 
 | ||
|  | const sorted = sortExceptions(exceptions); | ||
|  | 
 | ||
|  | writeFileSync(exceptionsPath, JSON.stringify(sorted, null, '  ')); |