File tree 2 files changed +12
-5
lines changed
2 files changed +12
-5
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " blive-message-listener" ,
3
- "version" : " 0.1.5 " ,
3
+ "version" : " 0.1.6 " ,
4
4
"description" : " Bilibili-live danmu listener with type" ,
5
- "type" : " module" ,
6
5
"main" : " dist/index.js" ,
6
+ "module" : " dist/index.mjs" ,
7
7
"types" : " dist/index.d.ts" ,
8
8
"homepage" : " https://github.com/ddiu8081/blive-message-listener#readme" ,
9
9
"repository" : {
10
10
"type" : " git" ,
11
11
"url" : " https://github.com/ddiu8081/blive-message-listener"
12
12
},
13
+ "author" :
" ddiu8081 <[email protected] >" ,
14
+ "license" : " MIT" ,
13
15
"scripts" : {
14
16
"dev" : " tsup --watch" ,
15
17
"build" : " tsup"
16
18
},
19
+ "exports" : {
20
+ "." : {
21
+ "require" : " ./dist/index.js" ,
22
+ "import" : " ./dist/index.mjs"
23
+ }
24
+ },
17
25
"files" : [
18
26
" dist"
19
27
],
23
31
" danmaku" ,
24
32
" danmu"
25
33
],
26
- "author" :
" ddiu8081 <[email protected] >" ,
27
- "license" : " MIT" ,
34
+ "sideEffects" : false ,
28
35
"dependencies" : {
29
36
"bilibili-live-ws" : " ^6.2.1"
30
37
},
Original file line number Diff line number Diff line change 1
1
import { defineConfig } from 'tsup'
2
2
3
3
export default defineConfig ( {
4
- format : [ 'esm' ] ,
4
+ format : [ 'esm' , 'cjs' ] ,
5
5
entry : [ 'src/index.ts' ] ,
6
6
dts : true ,
7
7
clean : true ,
You can’t perform that action at this time.
0 commit comments