MCPcopy
hub / github.com/colinhacks/zod / buildTsc

Function buildTsc

packages/resolution/test-resolution.ts:22–34  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

20}
21
22async function buildTsc() {
23 console.log("🔨 Building project with tsc...");
24 try {
25 await execa("tsc", ["--project", "tsconfig.build.json"], {
26 cwd: __dirname,
27 stdio: "inherit",
28 });
29 // console.log('✅ Build completed successfully!');
30 } catch (error) {
31 console.error("❌ Error building project:", error);
32 process.exit(1);
33 }
34}
35
36async function testCjs() {
37 console.log("🧪 Testing CommonJS build...");

Callers 1

runAllTestsFunction · 0.85

Calls 1

errorMethod · 0.80

Tested by

no test coverage detected