File tree Expand file tree Collapse file tree 3 files changed +23
-0
lines changed Expand file tree Collapse file tree 3 files changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -28,3 +28,9 @@ package-lock.json
28
28
yarn.lock
29
29
30
30
.npmignore
31
+
32
+ /lib /** /* .d.ts
33
+ /lib /** /* .d.ts.map
34
+ ! /lib /types.d.ts
35
+ /index.d.ts
36
+ /index.d.ts.map
Original file line number Diff line number Diff line change
1
+
2
+ {
3
+ "extends" : " ./tsconfig" ,
4
+ "files" : [
5
+ " index.js"
6
+ ],
7
+ "compilerOptions" : {
8
+ "declaration" : true ,
9
+ "declarationMap" : true ,
10
+ "noEmit" : false ,
11
+ "emitDeclarationOnly" : true
12
+ }
13
+ }
Original file line number Diff line number Diff line change 5
5
"description" : " React specific linting rules for ESLint" ,
6
6
"main" : " index.js" ,
7
7
"scripts" : {
8
+ "clean-built-types" : " rm -f $(find . -maxdepth 1 -type f -name '*.d.ts*') $(find lib -type f -name '*.d.ts*' ! -name 'types.d.ts')" ,
9
+ "prebuild-types" : " npm run clean-built-types" ,
10
+ "build-types" : " tsc -p build.tsconfig.json" ,
11
+ "prepublishOnly" : " npm run build-types" ,
8
12
"prepack" : " npmignore --auto --commentLines=autogenerated" ,
9
13
"prelint" : " npm run lint:docs" ,
10
14
"lint:docs" : " markdownlint \" **/*.md\" " ,
You can’t perform that action at this time.
0 commit comments