File tree 6 files changed +12
-8
lines changed
6 files changed +12
-8
lines changed Original file line number Diff line number Diff line change
1
+ export * from "./src/hooks" ;
2
+ import { plugin } from "./src/plugin" ;
3
+ export default plugin ;
Original file line number Diff line number Diff line change 5
5
"type" : " module" ,
6
6
"main" : " dist/index.js" ,
7
7
"module" : " dist/index.mjs" ,
8
+ "types" : " dist/types/index.d.ts" ,
8
9
"scripts" : {
9
10
"dev" : " vite" ,
10
11
"size" : " size-limit" ,
Original file line number Diff line number Diff line change 1
1
import typescript from 'rollup-plugin-typescript2' ;
2
- import peerDepsExternal from 'rollup-plugin-peer-deps-external'
2
+ import peerDepsExternal from 'rollup-plugin-peer-deps-external' ;
3
3
import terser from '@rollup/plugin-terser' ;
4
4
import del from 'rollup-plugin-delete' ;
5
5
import { nodeResolve } from '@rollup/plugin-node-resolve' ;
6
6
import commonjs from '@rollup/plugin-commonjs' ;
7
7
8
8
export default [
9
9
{
10
- input : 'src/ index.ts' ,
10
+ input : 'index.ts' ,
11
11
output : [
12
12
{
13
13
format : 'esm' ,
@@ -30,14 +30,17 @@ export default [
30
30
typescript ( {
31
31
tsconfig : 'tsconfig.node.json' ,
32
32
check : false ,
33
+ useTsconfigDeclarationDir : true ,
33
34
tsconfigOverride : {
34
35
compilerOptions : {
35
36
sourceMap : true ,
36
37
declaration : true ,
37
38
declarationMap : true ,
39
+ target : "ESNext" ,
40
+ declarationDir : "./dist/types" ,
38
41
}
39
42
}
40
43
} )
41
44
]
42
45
}
43
- ]
46
+ ] ;
Original file line number Diff line number Diff line change 1
1
<script setup lang="ts">
2
- import { useTelemetryDeck } from " ./ "
2
+ import { useTelemetryDeck } from " ../index.ts " ;
3
3
const { signal, queue, setClientUser } = useTelemetryDeck ();
4
4
5
5
const changeClientUserClick = () => {
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
import { createApp } from 'vue'
2
2
import './style.css'
3
3
import App from './App.vue'
4
- import TelemetryDeckPlugin from './ '
4
+ import TelemetryDeckPlugin from '../index.ts '
5
5
6
6
const app = createApp ( App )
7
7
app . use ( TelemetryDeckPlugin , {
You can’t perform that action at this time.
0 commit comments