MCPcopy Index your code
hub / github.com/ampproject/amphtml / checkBuildSystem

Function checkBuildSystem

build-system/tasks/check-build-system.js:24–32  ·  view source on GitHub ↗

* Performs type checking on the /build-system directory using TypeScript. * Configuration is defined in /build-system/tsconfig.json.

()

Source from the content-addressed store, hash-verified

22 * Configuration is defined in /build-system/tsconfig.json.
23 */
24function checkBuildSystem() {
25 updateBuildSystemSubpackages();
26 log('Checking types in', cyan('build-system') + '...');
27 execOrThrow(
28 'npx -p typescript tsc --project ./build-system/tsconfig.json',
29 'Type checking failed'
30 );
31 log(green('SUCCESS:'), 'No type errors in', cyan('build-system') + '.');
32}
33
34checkBuildSystem.description =
35 'Check source code in build-system/ for JS type errors';

Callers

nothing calls this directly

Calls 5

cyanFunction · 0.85
execOrThrowFunction · 0.85
greenFunction · 0.85
logFunction · 0.50

Tested by

no test coverage detected