aboutsummaryrefslogtreecommitdiffstats
path: root/packages/preload
diff options
context:
space:
mode:
authorLibravatar Kristóf Marussy <kristof@marussy.com>2021-12-30 12:07:19 +0100
committerLibravatar Kristóf Marussy <kristof@marussy.com>2021-12-30 12:38:24 +0100
commite46099ac744919c927909f741d9b5870abab5a58 (patch)
tree393985ecf730f0908db1eefaaedb6fb92c726e40 /packages/preload
parentbuild: Use shared packages through modules (diff)
downloadsophie-e46099ac744919c927909f741d9b5870abab5a58.tar.gz
sophie-e46099ac744919c927909f741d9b5870abab5a58.tar.zst
sophie-e46099ac744919c927909f741d9b5870abab5a58.zip
build: Only use vite typings in renderer
The rest of the packages aren't buld with vite, so we shouldn't use its typings.
Diffstat (limited to 'packages/preload')
-rw-r--r--packages/preload/tsconfig.json6
-rw-r--r--packages/preload/types/importMeta.d.ts7
2 files changed, 10 insertions, 3 deletions
diff --git a/packages/preload/tsconfig.json b/packages/preload/tsconfig.json
index af0fd5f..741d435 100644
--- a/packages/preload/tsconfig.json
+++ b/packages/preload/tsconfig.json
@@ -8,8 +8,7 @@
8 "esnext" 8 "esnext"
9 ], 9 ],
10 "types": [ 10 "types": [
11 "@types/jest", 11 "@types/jest"
12 "vite/client"
13 ] 12 ]
14 }, 13 },
15 "references": [ 14 "references": [
@@ -18,6 +17,7 @@
18 } 17 }
19 ], 18 ],
20 "include": [ 19 "include": [
21 "src/**/*.ts" 20 "src/**/*.ts",
21 "types/**/*.d.ts"
22 ] 22 ]
23} 23}
diff --git a/packages/preload/types/importMeta.d.ts b/packages/preload/types/importMeta.d.ts
new file mode 100644
index 0000000..9b73170
--- /dev/null
+++ b/packages/preload/types/importMeta.d.ts
@@ -0,0 +1,7 @@
1interface ImportMeta {
2 env: {
3 DEV: boolean;
4 MODE: string;
5 PROD: boolean;
6 }
7}