From 41540d25514e264de785bcfc576495c6c9775160 Mon Sep 17 00:00:00 2001 From: Shibo Date: Sat, 28 Sep 2024 17:18:47 +0200 Subject: [PATCH] cleanup 2 --- cli/lib/export-fns/export-gerbers.ts | 3 --- cli/lib/soupify/run-entrypoint-file.ts | 1 + 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/cli/lib/export-fns/export-gerbers.ts b/cli/lib/export-fns/export-gerbers.ts index a7244ae4..8d5d576d 100644 --- a/cli/lib/export-fns/export-gerbers.ts +++ b/cli/lib/export-fns/export-gerbers.ts @@ -29,7 +29,6 @@ export const exportGerbersToFile = async ( }, ctx, ) - console.log(soup, "soup") console.log(kleur.gray("[soup to gerber json]...")) const gerber_layer_cmds = convertSoupToGerberCommands(soup, { @@ -92,7 +91,6 @@ export const exportGerbersToZipBuffer = async ( ) => { const tempDir = Path.join(".tscircuit", "tmp-gerber-zip") fs.mkdirSync(tempDir, { recursive: true }) - console.log("step two") await exportGerbersToFile( { example_file_path: params.example_file_path, @@ -101,7 +99,6 @@ export const exportGerbersToZipBuffer = async ( }, ctx, ) - console.log("step last") const buffer = fs.readFileSync(Path.join(tempDir, "gerbers.zip")) diff --git a/cli/lib/soupify/run-entrypoint-file.ts b/cli/lib/soupify/run-entrypoint-file.ts index 826bc910..434a609f 100644 --- a/cli/lib/soupify/run-entrypoint-file.ts +++ b/cli/lib/soupify/run-entrypoint-file.ts @@ -27,6 +27,7 @@ export const runEntrypointFile = async ( const processResult = await processCmdPart1 .stderr(debug.enabled ? "inheritPiped" : "piped") .stdout(debug.enabled ? "inheritPiped" : "piped") + .noThrow() const rawSoup = await readFile(tmpOutputPath, "utf-8") const errText = processResult.stderr