MCPcopy Create free account
hub / github.com/fontsource/fontsource / verifyAll

Function verifyAll

packages/cli/src/custom/verify.ts:167–187  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

165};
166
167export const verifyAll = async (): Promise<void> => {
168 const fontDir = './fonts/other';
169 const directories = getDirectories(fontDir);
170 let hasErrors = false;
171
172 for (const directory of directories) {
173 try {
174 await verify({ font: directory, ci: true, cwd: fontDir });
175 } catch (error) {
176 consola.warn(`Error verifying ${directory}.`);
177 consola.warn(error);
178 hasErrors = true;
179 }
180 }
181
182 if (hasErrors) {
183 consola.error('Errors found. Exiting.');
184
185 process.exit(1);
186 }
187};

Callers 2

cli.tsFile · 0.90
rebuildFunction · 0.90

Calls 4

getDirectoriesFunction · 0.90
verifyFunction · 0.85
warnMethod · 0.80
errorMethod · 0.80

Tested by

no test coverage detected