packages/purplet/src/config/tsconfig.ts
Function writeTSConfig
has 67 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export async function writeTSConfig(config: ResolvedConfig) {
const files = await readdir(config.root);
const matched = searchPaths.filter(file => files.includes(file));
const rootRelative = (file: string) => posixify(path.relative(config.root, file));