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/shared/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/shared/package.json')
-rw-r--r-- | packages/shared/package.json | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/shared/package.json b/packages/shared/package.json index f49be47..83aec54 100644 --- a/packages/shared/package.json +++ b/packages/shared/package.json | |||
@@ -4,12 +4,14 @@ | |||
4 | "private": true, | 4 | "private": true, |
5 | "main": "dist/index.cjs", | 5 | "main": "dist/index.cjs", |
6 | "module": "dist/index.es.js", | 6 | "module": "dist/index.es.js", |
7 | "types": "dist/index.d.ts", | 7 | "types": "dist-types/index.d.ts", |
8 | "scripts": { | 8 | "scripts": { |
9 | "clean": "rimraf dist dist-types tsconfig.tsbuildinfo", | ||
9 | "build": "vite build", | 10 | "build": "vite build", |
10 | "typecheck": "tsc" | 11 | "typecheck": "tsc" |
11 | }, | 12 | }, |
12 | "devDependencies": { | 13 | "devDependencies": { |
14 | "rimraf": "^3.0.2", | ||
13 | "typescript": "^4.5.4", | 15 | "typescript": "^4.5.4", |
14 | "vite": "^2.7.6" | 16 | "vite": "^2.7.6" |
15 | }, | 17 | }, |