Skip to content

Commit 06d92e8

Browse files
committed
correct @types
1 parent dd9ef2f commit 06d92e8

File tree

5 files changed

+12
-18
lines changed

5 files changed

+12
-18
lines changed

.travis.yml

-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ cache:
1010
install:
1111
- yarn global add jq
1212
- yarn add $(jq -r '.peerDependencies|keys|join(" ")' package.json)
13-
- yarn global add typings
14-
- typings install
1513

1614
script:
1715
- yarn transpile

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@
1414
},
1515
"license": "MIT",
1616
"main": "lib/index.js",
17-
"typings": "lib/index.d.ts",
1817
"scripts": {
1918
"clean": "rm -rf lib",
20-
"watch": "npm run clean && tsc -p . --watch",
21-
"transpile": "npm run clean && tsc -p .",
19+
"watch": "yarn clean && tsc -p . --watch",
20+
"transpile": "yarn clean && tsc -p .",
2221
"tsc": "tsc"
2322
},
2423
"devDependencies": {
24+
"@types/react": "^16.0.38",
2525
"typescript": "^2.1.4"
2626
},
2727
"peerDependencies": {

tsconfig.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
"module": "commonjs",
55
"outDir": "./lib",
66
"declaration": true,
7-
"jsx": "react"
7+
"jsx": "react",
8+
"lib": ["es2015"]
89
},
910
"include": [
10-
"src/**/*",
11-
"typings/index.d.ts"
11+
"src/**/*"
1212
],
1313
"exclude": [
1414
"node_modules"

typings.json

-8
This file was deleted.

yarn.lock

+6-2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
# yarn lockfile v1
33

44

5+
"@types/react@^16.0.38":
6+
version "16.0.38"
7+
resolved "https://registry.yarnpkg.com/@types/react/-/react-16.0.38.tgz#76617433ea10274505f60bb86eddfdd0476ffdc2"
8+
59
typescript@^2.1.4:
6-
version "2.2.0"
7-
resolved "https://registry.yarnpkg.com/typescript/-/typescript-2.2.0.tgz#626f2fc70087d2480f21ebb12c1888288c8614e3"
10+
version "2.7.2"
11+
resolved "https://registry.yarnpkg.com/typescript/-/typescript-2.7.2.tgz#2d615a1ef4aee4f574425cdff7026edf81919836"

0 commit comments

Comments
 (0)