diff options
Diffstat (limited to 'packages/shared')
-rw-r--r-- | packages/shared/package.json | 4 | ||||
-rw-r--r-- | packages/shared/tsconfig.json | 3 | ||||
-rw-r--r-- | packages/shared/vite.config.js | 2 |
3 files changed, 5 insertions, 4 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 | }, |
diff --git a/packages/shared/tsconfig.json b/packages/shared/tsconfig.json index d441cc8..de75833 100644 --- a/packages/shared/tsconfig.json +++ b/packages/shared/tsconfig.json | |||
@@ -2,8 +2,7 @@ | |||
2 | "extends": "../../tsconfig.json", | 2 | "extends": "../../tsconfig.json", |
3 | "compilerOptions": { | 3 | "compilerOptions": { |
4 | "composite": true, | 4 | "composite": true, |
5 | "declaration": true, | 5 | "declarationDir": "dist-types", |
6 | "declarationDir": "dist", | ||
7 | "emitDeclarationOnly": true, | 6 | "emitDeclarationOnly": true, |
8 | "rootDir": "src" | 7 | "rootDir": "src" |
9 | }, | 8 | }, |
diff --git a/packages/shared/vite.config.js b/packages/shared/vite.config.js index 05ec118..a3efc87 100644 --- a/packages/shared/vite.config.js +++ b/packages/shared/vite.config.js | |||
@@ -36,7 +36,7 @@ const config = { | |||
36 | ...builtinModules, | 36 | ...builtinModules, |
37 | ], | 37 | ], |
38 | }, | 38 | }, |
39 | emptyOutDir: false, // Do not remove `.d.ts` files. | 39 | emptyOutDir: true, |
40 | brotliSize: false, | 40 | brotliSize: false, |
41 | }, | 41 | }, |
42 | }; | 42 | }; |