Skip to content
This repository was archived by the owner on Sep 28, 2024. It is now read-only.

Commit 0a981bd

Browse files
committed
Add types to package.json included files
1 parent 799f03d commit 0a981bd

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ Vue.use(VueCustomTooltip, {
6363
})
6464
```
6565

66-
### In-Component (locally available) - **Vue 2.x only**
66+
### In-Component (locally available)
6767

6868
Alternatively, you may initialize the component directly within a single file in your project.
6969

@@ -76,7 +76,10 @@ Alternatively, you may initialize the component directly within a single file in
7676

7777
<script>
7878
// Import the tooltip component (no options available)
79+
// Vue 2.x
7980
import VueCustomTooltip from '@adamdehaven/vue-custom-tooltip'
81+
// Vue 3.x (notice we're importing the actual .vue file)
82+
import VueCustomTooltip from '@adamdehaven/vue-custom-tooltip/src/VueCustomTooltip.vue'
8083
8184
// .vue file default export
8285
export default {

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@adamdehaven/vue-custom-tooltip",
3-
"version": "2.2.0",
3+
"version": "2.3.0",
44
"description": "A customizable, reusable, and reactive tooltip component for Vue 3 (including TypeScript) projects.",
55
"keywords": [
66
"Vue",
@@ -31,7 +31,8 @@
3131
"types": "dist/index.d.ts",
3232
"files": [
3333
"dist/*",
34-
"src/**/*.vue"
34+
"src/VueCustomTooltip.vue",
35+
"src/types.ts"
3536
],
3637
"peerDependencies": {
3738
"vue": "^3.0.0"

0 commit comments

Comments
 (0)