From 7827e6b09713309da1deccc1d6ad28bb8aed8dd9 Mon Sep 17 00:00:00 2001 From: JeffDotPng Date: Wed, 22 Nov 2023 16:04:30 -0500 Subject: [PATCH] fix build --- src/renderer/src/env.d.ts | 2 ++ tsconfig.node.json | 2 +- tsconfig.web.json | 4 +--- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/renderer/src/env.d.ts b/src/renderer/src/env.d.ts index 11f02fe..e9f883e 100644 --- a/src/renderer/src/env.d.ts +++ b/src/renderer/src/env.d.ts @@ -1 +1,3 @@ /// + +declare module '*.png?asset'; diff --git a/tsconfig.node.json b/tsconfig.node.json index eeda49d..ec85e3e 100644 --- a/tsconfig.node.json +++ b/tsconfig.node.json @@ -1,6 +1,6 @@ { "extends": "@electron-toolkit/tsconfig/tsconfig.node.json", - "include": ["electron.vite.config.*","src/main/*", "src/main/**/*", "src/preload/*"], + "include": ["electron.vite.config.*", "src/main/**/*", "src/preload/*"], "compilerOptions": { "composite": true, "types": ["electron-vite/node"] diff --git a/tsconfig.web.json b/tsconfig.web.json index bca108f..ef0c1f6 100644 --- a/tsconfig.web.json +++ b/tsconfig.web.json @@ -5,8 +5,7 @@ "src/renderer/src/**/*", "src/renderer/src/**/*.tsx", "src/preload/*.d.ts", - "src/main/api/index.d.ts", - "package.json" + "package.json", ], "compilerOptions": { "composite": true, @@ -17,6 +16,5 @@ "./src/renderer/src/*" ] }, - "isolatedModules": true } }