Skip to content

Commit 5207874

Browse files
committed
correct @types
1 parent f49e39f commit 5207874

File tree

4 files changed

+8
-26
lines changed

4 files changed

+8
-26
lines changed

.travis.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
11
language: node_js
22
sudo: false
33
node_js:
4-
- 6
4+
- 8
55

66
cache:
77
directories:
88
- node_modules
99

1010
script:
11-
- yarn global add typings
12-
- typings install
13-
- yarn run build
11+
- yarn build
1412

1513
deploy:
1614
skip_cleanup: true

package.json

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,12 @@
2020
"typings": "index.d.ts",
2121
"scripts": {
2222
"clean": "rm -rf lib",
23-
"watch": "yarn run clean && tsc -p . --watch",
24-
"transpile": "yarn run clean && tsc -p .",
25-
"build": "yarn run clean && tsc --outDir ./ -p .",
23+
"watch": "yarn clean && tsc -p . --watch",
24+
"transpile": "yarn clean && tsc -p .",
25+
"build": "yarn clean && tsc --outDir ./ -p .",
2626
"tsc": "tsc"
2727
},
2828
"devDependencies": {
29-
"@types/es6-promise": "3.x.x",
30-
"@types/node": "9.x.x",
3129
"@types/react": "16.x.x",
3230
"typescript": "2.x.x"
3331
},

tsconfig.json

Lines changed: 3 additions & 3 deletions
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", "dom"]
89
},
910
"include": [
10-
"src/**/*",
11-
"typings/index.d.ts"
11+
"src/**/*"
1212
],
1313
"exclude": [
1414
"node_modules"

yarn.lock

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,6 @@
22
# yarn lockfile v1
33

44

5-
6-
version "3.3.0"
7-
resolved "https://registry.yarnpkg.com/@types/es6-promise/-/es6-promise-3.3.0.tgz#61b55e554fd807b563f158a7986ee53d3a5a5a9d"
8-
dependencies:
9-
es6-promise "*"
10-
11-
12-
version "9.4.6"
13-
resolved "https://registry.yarnpkg.com/@types/node/-/node-9.4.6.tgz#d8176d864ee48753d053783e4e463aec86b8d82e"
14-
155
166
version "16.0.38"
177
resolved "https://registry.yarnpkg.com/@types/react/-/react-16.0.38.tgz#76617433ea10274505f60bb86eddfdd0476ffdc2"
@@ -30,10 +20,6 @@ encoding@^0.1.11:
3020
dependencies:
3121
iconv-lite "~0.4.13"
3222

33-
es6-promise@*:
34-
version "4.2.4"
35-
resolved "https://registry.yarnpkg.com/es6-promise/-/es6-promise-4.2.4.tgz#dc4221c2b16518760bd8c39a52d8f356fc00ed29"
36-
3723
fbjs@^0.8.16:
3824
version "0.8.16"
3925
resolved "https://registry.yarnpkg.com/fbjs/-/fbjs-0.8.16.tgz#5e67432f550dc41b572bf55847b8aca64e5337db"

0 commit comments

Comments
 (0)