From 4c21fd4844b7b1c5d1ac1aa90d90030675cd86e1 Mon Sep 17 00:00:00 2001 From: 134 Date: Mon, 27 Jul 2026 20:33:57 +0800 Subject: [PATCH] fix: exclude HiCAD templates from app typecheck --- scripts/vendor-zoo-modeling-app.mjs | 4 ++-- tests/routes/hicad-manufacturing-extension.test.ts | 2 +- ...ngLauncher.tsx => HicadManufacturingLauncher.tsx.template} | 0 ...acturingPanel.tsx => HicadManufacturingPanel.tsx.template} | 0 4 files changed, 3 insertions(+), 3 deletions(-) rename vendor/zoo-modeling-app/{HicadManufacturingLauncher.tsx => HicadManufacturingLauncher.tsx.template} (100%) rename vendor/zoo-modeling-app/{HicadManufacturingPanel.tsx => HicadManufacturingPanel.tsx.template} (100%) diff --git a/scripts/vendor-zoo-modeling-app.mjs b/scripts/vendor-zoo-modeling-app.mjs index 544d6c0da..3fa58cdd1 100644 --- a/scripts/vendor-zoo-modeling-app.mjs +++ b/scripts/vendor-zoo-modeling-app.mjs @@ -142,11 +142,11 @@ function patchOfficialSource() { path.join(sourceDir, "src/components/manufacturing.ts") ); copyFileSync( - path.join(customizationDir, "HicadManufacturingPanel.tsx"), + path.join(customizationDir, "HicadManufacturingPanel.tsx.template"), path.join(sourceDir, "src/components/HicadManufacturingPanel.tsx") ); copyFileSync( - path.join(customizationDir, "HicadManufacturingLauncher.tsx"), + path.join(customizationDir, "HicadManufacturingLauncher.tsx.template"), path.join(sourceDir, "src/components/HicadManufacturingLauncher.tsx") ); } diff --git a/tests/routes/hicad-manufacturing-extension.test.ts b/tests/routes/hicad-manufacturing-extension.test.ts index 4a879a793..d086486d7 100644 --- a/tests/routes/hicad-manufacturing-extension.test.ts +++ b/tests/routes/hicad-manufacturing-extension.test.ts @@ -61,7 +61,7 @@ test.describe('HiCAD manufacturing extension', () => { const launcher = fs.readFileSync( path.join( projectRoot, - 'vendor/zoo-modeling-app/HicadManufacturingLauncher.tsx' + 'vendor/zoo-modeling-app/HicadManufacturingLauncher.tsx.template' ), 'utf8' ) diff --git a/vendor/zoo-modeling-app/HicadManufacturingLauncher.tsx b/vendor/zoo-modeling-app/HicadManufacturingLauncher.tsx.template similarity index 100% rename from vendor/zoo-modeling-app/HicadManufacturingLauncher.tsx rename to vendor/zoo-modeling-app/HicadManufacturingLauncher.tsx.template diff --git a/vendor/zoo-modeling-app/HicadManufacturingPanel.tsx b/vendor/zoo-modeling-app/HicadManufacturingPanel.tsx.template similarity index 100% rename from vendor/zoo-modeling-app/HicadManufacturingPanel.tsx rename to vendor/zoo-modeling-app/HicadManufacturingPanel.tsx.template