aboutsummaryrefslogtreecommitdiffstats
path: root/packages/shared
diff options
context:
space:
mode:
authorLibravatar Kristóf Marussy <kristof@marussy.com>2021-12-28 14:06:16 +0100
committerLibravatar Kristóf Marussy <kristof@marussy.com>2021-12-28 14:17:12 +0100
commit79365dc90e2272c209c68d9c05e3681bebaf0704 (patch)
tree24258ac7be00d207020f07d2b98dc26da470175e /packages/shared
parentrefactor: Functional design for controllers (diff)
downloadsophie-79365dc90e2272c209c68d9c05e3681bebaf0704.tar.gz
sophie-79365dc90e2272c209c68d9c05e3681bebaf0704.tar.zst
sophie-79365dc90e2272c209c68d9c05e3681bebaf0704.zip
build: Simplify type declaration generation
Diffstat (limited to 'packages/shared')
-rw-r--r--packages/shared/package.json5
-rw-r--r--packages/shared/tsconfig.json2
-rw-r--r--packages/shared/vite.config.js1
3 files changed, 5 insertions, 3 deletions
diff --git a/packages/shared/package.json b/packages/shared/package.json
index 7f8830d..6406035 100644
--- a/packages/shared/package.json
+++ b/packages/shared/package.json
@@ -5,9 +5,10 @@
5 "sideEffects": false, 5 "sideEffects": false,
6 "main": "dist/index.cjs", 6 "main": "dist/index.cjs",
7 "module": "dist/index.es.js", 7 "module": "dist/index.es.js",
8 "types": "dist-types/index.d.ts", 8 "types": "dist/index.d.ts",
9 "scripts": { 9 "scripts": {
10 "clean": "rimraf dist dist-types tsconfig.tsbuildinfo", 10 "clean": "rimraf dist tsconfig.tsbuildinfo",
11 "pretest": "yarn typecheck && yarn build",
11 "build": "vite build", 12 "build": "vite build",
12 "typecheck": "tsc" 13 "typecheck": "tsc"
13 }, 14 },
diff --git a/packages/shared/tsconfig.json b/packages/shared/tsconfig.json
index de75833..ff5a29b 100644
--- a/packages/shared/tsconfig.json
+++ b/packages/shared/tsconfig.json
@@ -2,7 +2,7 @@
2 "extends": "../../tsconfig.json", 2 "extends": "../../tsconfig.json",
3 "compilerOptions": { 3 "compilerOptions": {
4 "composite": true, 4 "composite": true,
5 "declarationDir": "dist-types", 5 "declarationDir": "dist",
6 "emitDeclarationOnly": true, 6 "emitDeclarationOnly": true,
7 "rootDir": "src" 7 "rootDir": "src"
8 }, 8 },
diff --git a/packages/shared/vite.config.js b/packages/shared/vite.config.js
index 718695a..5fb1ceb 100644
--- a/packages/shared/vite.config.js
+++ b/packages/shared/vite.config.js
@@ -33,6 +33,7 @@ const config = makeConfig({
33 ...builtinModules, 33 ...builtinModules,
34 ], 34 ],
35 }, 35 },
36 emptyOutDir: false, // Do not remove .d.ts files.
36 }, 37 },
37}); 38});
38 39