diff options
author | 2021-12-28 14:06:16 +0100 | |
---|---|---|
committer | 2021-12-28 14:17:12 +0100 | |
commit | 79365dc90e2272c209c68d9c05e3681bebaf0704 (patch) | |
tree | 24258ac7be00d207020f07d2b98dc26da470175e /packages/service-shared | |
parent | refactor: Functional design for controllers (diff) | |
download | sophie-79365dc90e2272c209c68d9c05e3681bebaf0704.tar.gz sophie-79365dc90e2272c209c68d9c05e3681bebaf0704.tar.zst sophie-79365dc90e2272c209c68d9c05e3681bebaf0704.zip |
build: Simplify type declaration generation
Diffstat (limited to 'packages/service-shared')
-rw-r--r-- | packages/service-shared/package.json | 5 | ||||
-rw-r--r-- | packages/service-shared/tsconfig.json | 2 | ||||
-rw-r--r-- | packages/service-shared/vite.config.js | 1 |
3 files changed, 5 insertions, 3 deletions
diff --git a/packages/service-shared/package.json b/packages/service-shared/package.json index 1511906..a176def 100644 --- a/packages/service-shared/package.json +++ b/packages/service-shared/package.json | |||
@@ -4,9 +4,10 @@ | |||
4 | "private": true, | 4 | "private": true, |
5 | "sideEffects": false, | 5 | "sideEffects": false, |
6 | "main": "dist/index.cjs", | 6 | "main": "dist/index.cjs", |
7 | "types": "dist-types/index.d.ts", | 7 | "types": "dist/index.d.ts", |
8 | "scripts": { | 8 | "scripts": { |
9 | "clean": "rimraf dist dist-types tsconfig.tsbuildinfo", | 9 | "clean": "rimraf dist tsconfig.tsbuildinfo", |
10 | "pretest": "yarn typecheck && yarn build", | ||
10 | "build": "vite build", | 11 | "build": "vite build", |
11 | "typecheck": "tsc" | 12 | "typecheck": "tsc" |
12 | }, | 13 | }, |
diff --git a/packages/service-shared/tsconfig.json b/packages/service-shared/tsconfig.json index de75833..ff5a29b 100644 --- a/packages/service-shared/tsconfig.json +++ b/packages/service-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/service-shared/vite.config.js b/packages/service-shared/vite.config.js index 6f4959f..2391810 100644 --- a/packages/service-shared/vite.config.js +++ b/packages/service-shared/vite.config.js | |||
@@ -28,6 +28,7 @@ const config = makeConfig({ | |||
28 | ...builtinModules, | 28 | ...builtinModules, |
29 | ], | 29 | ], |
30 | }, | 30 | }, |
31 | emptyOutDir: false, // Do not remove .d.ts files. | ||
31 | }, | 32 | }, |
32 | }); | 33 | }); |
33 | 34 | ||