File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change 2
2
"name" : " react-confetti" ,
3
3
"version" : " 2.4.1" ,
4
4
"description" : " React component to draw confetti for your party." ,
5
- "main" : " index.js" ,
5
+ "main" : " dist/react-confetti.min.js" ,
6
+ "types" : " dist/types/ReactConfetti.d.ts" ,
6
7
"repository" : {
7
8
"type" : " git" ,
8
9
"url" : " https://github.com/alampros/react-confetti.git"
26
27
" index.js"
27
28
],
28
29
"scripts" : {
29
- "build" : " rollup -c" ,
30
+ "build" : " tsc && rollup -c" ,
31
+ "prebuild" : " yarn clean" ,
30
32
"develop" : " rollup -c -w" ,
31
33
"test" : " tsc; yarn run lint" ,
32
34
"clean" : " git clean -xfd dist/" ,
Original file line number Diff line number Diff line change 1
1
{
2
2
"compilerOptions" : {
3
3
"target" : " esnext" ,
4
+ "module" : " commonjs" ,
4
5
"moduleResolution" : " node" ,
5
- "allowJs" : true ,
6
+ "declaration" : true ,
7
+ "declarationDir" : " dist/types" ,
6
8
"jsx" : " preserve" ,
7
- "noEmit " : true ,
9
+ "emitDeclarationOnly " : true ,
8
10
"strict" : true ,
9
- "isolatedModules" : true ,
10
11
"esModuleInterop" : true
11
12
},
12
13
"include" : [
You can’t perform that action at this time.
0 commit comments