aboutsummaryrefslogtreecommitdiffstats
path: root/package.json
diff options
context:
space:
mode:
authorLibravatar Kristóf Marussy <kristof@marussy.com>2021-12-23 16:04:18 +0100
committerLibravatar Kristóf Marussy <kristof@marussy.com>2021-12-23 16:15:14 +0100
commit9d74dfdb7ab3f4ce06bab00ce685541293bd37a6 (patch)
treeba740551142d483ef975cc7ced2425986a58302b /package.json
parentfeat: Add react and mobx integration (diff)
downloadsophie-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 'package.json')
-rw-r--r--package.json10
1 files changed, 8 insertions, 2 deletions
diff --git a/package.json b/package.json
index cf271bd..2b45f8e 100644
--- a/package.json
+++ b/package.json
@@ -1,7 +1,7 @@
1{ 1{
2 "name": "sophie", 2 "name": "sophie",
3 "version": "0.1.0", 3 "version": "0.1.0",
4 "description": "Messaging app build from the ground up with security in mind", 4 "description": "Messaging app built from the ground up with security in mind",
5 "keywords": [ 5 "keywords": [
6 "messaging", 6 "messaging",
7 "app" 7 "app"
@@ -13,12 +13,17 @@
13 }, 13 },
14 "main": "packages/main/dist/index.cjs", 14 "main": "packages/main/dist/index.cjs",
15 "scripts": { 15 "scripts": {
16 "clean": "rimraf dist .log && yarn workspaces foreach run clean",
16 "build": "yarn workspaces foreach -vpt run build", 17 "build": "yarn workspaces foreach -vpt run build",
17 "precompile": "cross-env MODE=production yarn run build", 18 "precompile": "cross-env MODE=production yarn run build",
18 "compile": "yarn precompile && electron-builder build --config .electron-builder.config.js --dir --config.asar=false", 19 "compile": "yarn precompile && electron-builder build --config .electron-builder.config.js --dir --config.asar=false",
19 "watch": "node scripts/watch.js", 20 "watch": "node scripts/watch.js",
20 "typecheck": "yarn workspaces foreach -vpt run typecheck", 21 "typecheck": "yarn workspaces foreach -vpt run typecheck",
21 "update-electron-vendors": "node scripts/update-electron-vendors.js" 22 "update-electron-vendors": "node scripts/update-electron-vendors.js",
23 "main": "yarn workspace @sophie/main",
24 "preload": "yarn workspace @sophie/preload",
25 "renderer": "yarn workspace @sophie/renderer",
26 "shared": "yarn workspace @sophie/shared"
22 }, 27 },
23 "workspaces": [ 28 "workspaces": [
24 "packages/main", 29 "packages/main",
@@ -33,6 +38,7 @@
33 "electron": "16.0.5", 38 "electron": "16.0.5",
34 "electron-builder": "22.14.11", 39 "electron-builder": "22.14.11",
35 "eslint": "8.5.0", 40 "eslint": "8.5.0",
41 "rimraf": "^3.0.2",
36 "rollup": "^2.61.1", 42 "rollup": "^2.61.1",
37 "typescript": "4.5.4", 43 "typescript": "4.5.4",
38 "vite": "2.7.6" 44 "vite": "2.7.6"