Skip to content

Commit f05d4bb

Browse files
rosskevintaion
authored andcommitted
Include typescript declarations in npm package (#178)
1 parent acf15cc commit f05d4bb

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed
File renamed without changes.

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@
33
"version": "0.3.10",
44
"description": "Extensible route-based routing for React applications",
55
"files": [
6-
"lib"
6+
"lib",
7+
"index.d.ts"
78
],
89
"main": "lib/index.js",
10+
"types": "index.d.ts",
911
"scripts": {
1012
"build": "rimraf lib && babel src -d lib",
1113
"format": "eslint --fix examples/*/src src test && prettier --write '{src,test}/**/*.{ts,tsx}'",

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@
1414
"noEmit": true,
1515
"experimentalDecorators": true
1616
},
17-
"include": ["src/**/*", "test/typescript/*"]
17+
"include": ["index.d.ts", "test/typescript/*"]
1818
}

0 commit comments

Comments
 (0)