Skip to content

Commit

Permalink
add ts file
Browse files Browse the repository at this point in the history
  • Loading branch information
lavrton committed Aug 11, 2024
1 parent dbae260 commit c7fe954
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"url": "https://github.com/konvajs/vue-konva/issues"
},
"scripts": {
"build": "vite build",
"build": "vite build && cp ./index.d.ts ./dist/index.d.ts",

This comment has been minimized.

Copy link
@Joebayld

Joebayld Aug 13, 2024

#244 this seems to be part of the issue. The index.d.ts file is missing all the types needed for installation.

"test": "vitest"
},
"peerDependencies": {
Expand Down
10 changes: 6 additions & 4 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@ import { defineConfig } from 'vitest/config';
import dts from 'vite-plugin-dts';

export default defineConfig({
plugins: [dts({
entryRoot: './src',
include: ['./src/index.ts', './*.d.ts'],
})],
plugins: [
dts({
entryRoot: './src',
include: ['./src/index.ts', './*.d.ts'],
}),
],
build: {
lib: {
entry: resolve(__dirname, 'src'),
Expand Down

0 comments on commit c7fe954

Please sign in to comment.