signal-desktop/ts/util/lint/sort_exceptions.ts

13 lines
384 B
TypeScript
Raw Normal View History

2023-01-03 19:55:46 +00:00
// Copyright 2018 Signal Messenger, LLC
2020-10-30 20:34:04 +00:00
// SPDX-License-Identifier: AGPL-3.0-only
import { join } from 'path';
import type { ExceptionType } from './types';
import { loadJSON, writeExceptions } from './util';
const exceptionsPath = join(__dirname, 'exceptions.json');
const exceptions: Array<ExceptionType> = loadJSON(exceptionsPath);
writeExceptions(exceptionsPath, exceptions);