Skip to content

Commit 5421443

Browse files
committed
add types to build
1 parent 326418d commit 5421443

File tree

4 files changed

+23
-7
lines changed

4 files changed

+23
-7
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
{
22
"name": "vue-audio-visual",
3-
"version": "3.0.1",
3+
"version": "3.0.2",
44
"type": "module",
55
"files": [
66
"dist"
77
],
88
"main": "./dist/vue-audio-visual.umd.cjs",
99
"module": "./dist/vue-audio-visual.js",
10+
"types": "./dist/types/src/plugin.d.ts",
1011
"exports": {
1112
".": {
1213
"import": "./dist/vue-audio-visual.js",
@@ -15,12 +16,13 @@
1516
},
1617
"scripts": {
1718
"dev": "vite",
18-
"build": "run-p type-check build-demo build-dist",
19+
"build": "run-p type-check build-demo build-dist build-types",
1920
"preview": "vite preview --port 4173",
2021
"test:unit": "vitest --environment jsdom",
2122
"test:ci": "vitest --environment jsdom --run --coverage",
2223
"build-demo": "vite build --base=/vue-audio-visual/",
2324
"build-dist": "vite build --config vite.config.dist.ts",
25+
"build-types": "vue-tsc -p tsconfig.build-types.json --declaration --emitDeclarationOnly --outDir dist/types",
2426
"type-check": "vue-tsc --noEmit -p tsconfig.vitest.json --composite false",
2527
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore"
2628
},

src/composables/useProps/index.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ export * from './Line'
44
export * from './Circle'
55
export * from './Waveform'
66
export * from './Media'
7-
import { commonProps } from './common'
8-
9-
export const PropsCommon = commonProps
107

118
export interface Props {
129
canvWidth: number

tsconfig.build-types.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"extends": "./tsconfig.app.json",
3+
"exclude": [
4+
"src/**/__tests__/*",
5+
"src/App.vue",
6+
"src/main.ts",
7+
"node_modules"
8+
],
9+
"compilerOptions": {
10+
"composite": true,
11+
"lib": [],
12+
"types": [
13+
"node",
14+
"jsdom"
15+
]
16+
}
17+
}

0 commit comments

Comments
 (0)