Skip to content

Commit

Permalink
add types to build
Browse files Browse the repository at this point in the history
  • Loading branch information
staskobzar committed Nov 16, 2022
1 parent 326418d commit 5421443
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 7 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
{
"name": "vue-audio-visual",
"version": "3.0.1",
"version": "3.0.2",
"type": "module",
"files": [
"dist"
],
"main": "./dist/vue-audio-visual.umd.cjs",
"module": "./dist/vue-audio-visual.js",
"types": "./dist/types/src/plugin.d.ts",
"exports": {
".": {
"import": "./dist/vue-audio-visual.js",
Expand All @@ -15,12 +16,13 @@
},
"scripts": {
"dev": "vite",
"build": "run-p type-check build-demo build-dist",
"build": "run-p type-check build-demo build-dist build-types",
"preview": "vite preview --port 4173",
"test:unit": "vitest --environment jsdom",
"test:ci": "vitest --environment jsdom --run --coverage",
"build-demo": "vite build --base=/vue-audio-visual/",
"build-dist": "vite build --config vite.config.dist.ts",
"build-types": "vue-tsc -p tsconfig.build-types.json --declaration --emitDeclarationOnly --outDir dist/types",
"type-check": "vue-tsc --noEmit -p tsconfig.vitest.json --composite false",
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore"
},
Expand Down
3 changes: 0 additions & 3 deletions src/composables/useProps/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ export * from './Line'
export * from './Circle'
export * from './Waveform'
export * from './Media'
import { commonProps } from './common'

export const PropsCommon = commonProps

export interface Props {
canvWidth: number
Expand Down
17 changes: 17 additions & 0 deletions tsconfig.build-types.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"extends": "./tsconfig.app.json",
"exclude": [
"src/**/__tests__/*",
"src/App.vue",
"src/main.ts",
"node_modules"
],
"compilerOptions": {
"composite": true,
"lib": [],
"types": [
"node",
"jsdom"
]
}
}

0 comments on commit 5421443

Please sign in to comment.