File tree Expand file tree Collapse file tree 4 files changed +11
-2
lines changed Expand file tree Collapse file tree 4 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,10 @@ export default defineConfig({
20
20
from : 'README.md' ,
21
21
to : 'dist/README.md' ,
22
22
} ,
23
+ {
24
+ from : 'types' ,
25
+ to : 'dist/types' ,
26
+ } ,
23
27
] ,
24
28
onSuccess ( ) {
25
29
writeFileSync (
@@ -34,7 +38,10 @@ export default defineConfig({
34
38
key !== 'private' ,
35
39
) ,
36
40
) ,
37
- exports : './index.js' ,
41
+ exports : {
42
+ '.' : './index.js' ,
43
+ './preamble' : './types/preamble.d.ts' ,
44
+ } ,
38
45
} ,
39
46
null ,
40
47
2 ,
File renamed without changes.
Original file line number Diff line number Diff line change 17
17
" Arnaud Barré"
18
18
],
19
19
"files" : [
20
+ " types" ,
20
21
" dist"
21
22
],
22
23
"type" : " module" ,
23
24
"exports" : {
24
25
"." : " ./dist/index.js" ,
25
- "./preamble" : " ./preamble.d.ts"
26
+ "./preamble" : " ./types/ preamble.d.ts"
26
27
},
27
28
"scripts" : {
28
29
"dev" : " tsdown --watch ./src --watch ../common" ,
Original file line number Diff line number Diff line change
1
+ export { }
You can’t perform that action at this time.
0 commit comments