Skip to content

Commit 20c980c

Browse files
author
Zerone
committed
build: change typeScript build
1 parent b00ad8c commit 20c980c

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
],
2626
"main": "dist/index.cjs",
2727
"module": "dist/index.js",
28-
"types": "dist/types/index.d.ts",
28+
"types": "dist/index.d.ts",
2929
"style": "dist/index.css",
3030
"exports": {
3131
"./web-components": {
@@ -36,7 +36,7 @@
3636
".": {
3737
"import": "./dist/index.js",
3838
"require": "./dist/index.cjs",
39-
"types": "./dist/types/index.d.ts"
39+
"types": "./dist/index.d.ts"
4040
},
4141
"./index.css": "./dist/index.css"
4242
},
@@ -51,7 +51,7 @@
5151
"test:dev": "cypress open --component",
5252
"build:core": "vite build -c=./config/vite.config.core.ts",
5353
"build:ce": "vite build -c=./config/vite.config.ce.ts",
54-
"type-check": "vue-tsc --build --force",
54+
"type-check": "vue-tsc -p tsconfig.build.json",
5555
"lint": "eslint \"**/*.{js,ts,jsx,tsx,vue}\" --fix",
5656
"format": "prettier \"**/*.{js,ts,jsx,tsx,vue,css,less}\" --write",
5757
"lint:css": "stylelint \"**/*.{vue,css,less}\" --fix",

tsconfig.build.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"rootDir": "src",
99
"baseUrl": ".",
1010
"declaration": true,
11-
"declarationDir": "dist/types",
11+
"declarationDir": "dist",
1212
"emitDeclarationOnly": true
1313
}
1414
}

tsconfig.json

-3
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@
1010
{
1111
"path": "./tsconfig.vitest.json",
1212
},
13-
{
14-
"path": "./tsconfig.build.json",
15-
},
1613
],
1714
"compilerOptions": {
1815
"module": "NodeNext",

0 commit comments

Comments
 (0)