From 9d74dfdb7ab3f4ce06bab00ce685541293bd37a6 Mon Sep 17 00:00:00 2001 From: Kristóf Marussy Date: Thu, 23 Dec 2021 16:04:18 +0100 Subject: 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. --- packages/main/package.json | 3 +++ 1 file changed, 3 insertions(+) (limited to 'packages/main/package.json') 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 @@ "version": "0.1.0", "private": true, "main": "dist/index.cjs", + "types": "dist-types/index.d.ts", "scripts": { + "clean": "rimraf dist dist-types tsconfig.tsbuildinfo", "build": "vite build", "typecheck": "tsc" }, @@ -17,6 +19,7 @@ "@types/electron-devtools-installer": "^2.2.0", "@types/node": "^17.0.4", "electron-devtools-installer": "^3.2.0", + "rimraf": "^3.0.2", "typescript": "^4.5.4", "vite": "^2.7.6" } -- cgit v1.2.3-70-g09d2