diff options
author | Kristóf Marussy <kristof@marussy.com> | 2021-12-23 16:04:18 +0100 |
---|---|---|
committer | Kristóf Marussy <kristof@marussy.com> | 2021-12-23 16:15:14 +0100 |
commit | 9d74dfdb7ab3f4ce06bab00ce685541293bd37a6 (patch) | |
tree | ba740551142d483ef975cc7ced2425986a58302b /packages/main/package.json | |
parent | feat: Add react and mobx integration (diff) | |
download | sophie-9d74dfdb7ab3f4ce06bab00ce685541293bd37a6.tar.gz sophie-9d74dfdb7ab3f4ce06bab00ce685541293bd37a6.tar.zst sophie-9d74dfdb7ab3f4ce06bab00ce685541293bd37a6.zip |
build: Enable typescript composite mode and clean
Moves all typings to the dist-types directories from the dist
directories so that we can let vite clean the dist directories on build
without clobbering the typings generated by tsc.
Diffstat (limited to 'packages/main/package.json')
-rw-r--r-- | packages/main/package.json | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/packages/main/package.json b/packages/main/package.json index 1f5e749..509acdc 100644 --- a/packages/main/package.json +++ b/packages/main/package.json | |||
@@ -3,7 +3,9 @@ | |||
3 | "version": "0.1.0", | 3 | "version": "0.1.0", |
4 | "private": true, | 4 | "private": true, |
5 | "main": "dist/index.cjs", | 5 | "main": "dist/index.cjs", |
6 | "types": "dist-types/index.d.ts", | ||
6 | "scripts": { | 7 | "scripts": { |
8 | "clean": "rimraf dist dist-types tsconfig.tsbuildinfo", | ||
7 | "build": "vite build", | 9 | "build": "vite build", |
8 | "typecheck": "tsc" | 10 | "typecheck": "tsc" |
9 | }, | 11 | }, |
@@ -17,6 +19,7 @@ | |||
17 | "@types/electron-devtools-installer": "^2.2.0", | 19 | "@types/electron-devtools-installer": "^2.2.0", |
18 | "@types/node": "^17.0.4", | 20 | "@types/node": "^17.0.4", |
19 | "electron-devtools-installer": "^3.2.0", | 21 | "electron-devtools-installer": "^3.2.0", |
22 | "rimraf": "^3.0.2", | ||
20 | "typescript": "^4.5.4", | 23 | "typescript": "^4.5.4", |
21 | "vite": "^2.7.6" | 24 | "vite": "^2.7.6" |
22 | } | 25 | } |