From 8487c34a14e9961ec5b86f0e3e1f6cf033dd1b57 Mon Sep 17 00:00:00 2001 From: James Garbutt <43081j@users.noreply.github.com> Date: Fri, 14 Aug 2026 09:16:20 +0100 Subject: [PATCH] chore: fix build warnings New typescript warns that it needs a `rootDir`. This also exposes an existing warning about `*.d.ts` being untyped, which is why I introduced `scss.d.ts`. --- src/scss.d.ts | 2 ++ src/tsconfig.json | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 src/scss.d.ts diff --git a/src/scss.d.ts b/src/scss.d.ts new file mode 100644 index 0000000..1f03833 --- /dev/null +++ b/src/scss.d.ts @@ -0,0 +1,2 @@ +// Styles are extracted by rollup-plugin-postcss and have no runtime exports. +declare module "*.scss"; diff --git a/src/tsconfig.json b/src/tsconfig.json index 6cb71a2..7ae32d0 100644 --- a/src/tsconfig.json +++ b/src/tsconfig.json @@ -18,7 +18,8 @@ "skipLibCheck": true, "strict": true, - "outDir": "../dist" + "outDir": "../dist", + "rootDir": ".." }, "include": ["./**/*", "../shared/**/*"], "exclude": ["node_modules"]