From f29172a9795e2c8fda01fb8d20bc8595fbf42732 Mon Sep 17 00:00:00 2001 From: Lukasz Lancucki Date: Wed, 22 Jul 2026 13:39:32 +0100 Subject: [PATCH] fix(frontend): ship scss/md ambient shim with emitted type declarations The type build (tsc -p tsconfig.build.json, emitDeclarationOnly) keeps side-effect imports like `import './AddPlugShowcase.scss'` in the emitted .d.ts files under static/types/, but the ambient module shim frontend/src/globals.d.ts was not part of the output, so the generated tree did not type-check standalone and IDEs reported unresolved scss/md modules. Copy the shim into static/types/ as part of build:types so the emitted declarations resolve on their own. Refs MPT-23439. Co-Authored-By: Claude Fable 5 --- frontend/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/package.json b/frontend/package.json index 871f5d2..d0ed1e3 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -5,7 +5,7 @@ "license": "Apache-2.0", "scripts": { "build:code": "node esbuild.config.js", - "build:types": "tsc -p tsconfig.build.json", + "build:types": "tsc -p tsconfig.build.json && cp src/globals.d.ts ../static/types/", "build": "npm run build:code && npm run build:types", "check": "tsc -p tsconfig.json --noEmit && eslint src --max-warnings=0", "format": "eslint src --fix",