Skip to content

Commit 626682d

Browse files
committed
fix dependency issue
1 parent 7219366 commit 626682d

File tree

2 files changed

+10
-12
lines changed

2 files changed

+10
-12
lines changed

package.json

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,11 @@
2020
"copyfiles": "^2.4.0",
2121
"react": "^16.13.1",
2222
"rimraf": "^3.0.2",
23-
"typescript": "^3.9.2"
23+
"typescript": "^4.1.2",
24+
"@babel/core": "^7.12.3",
25+
"@babel/preset-env": "^7.12.1",
26+
"@babel/preset-react": "^7.12.1",
27+
"@babel/preset-typescript": "^7.12.1"
2428
},
2529
"repository": "https://github.com/llldar/react-use-hoverintent",
2630
"peerDependencies": {
@@ -31,11 +35,5 @@
3135
],
3236
"scripts": {
3337
"build": "rimraf dist && tsc --emitDeclarationOnly && babel src --out-dir dist --extensions .ts,.tsx && copyfiles package.json LICENSE.md README.md ./dist"
34-
},
35-
"dependencies": {
36-
"@babel/core": "^7.12.3",
37-
"@babel/preset-env": "^7.12.1",
38-
"@babel/preset-react": "^7.12.1",
39-
"@babel/preset-typescript": "^7.12.1"
4038
}
41-
}
39+
}

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2468,10 +2468,10 @@ to-regex@^3.0.1, to-regex@^3.0.2:
24682468
regex-not "^1.0.2"
24692469
safe-regex "^1.1.0"
24702470

2471-
typescript@^3.9.2:
2472-
version "3.9.2"
2473-
resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.9.2.tgz#64e9c8e9be6ea583c54607677dd4680a1cf35db9"
2474-
integrity sha512-q2ktq4n/uLuNNShyayit+DTobV2ApPEo/6so68JaD5ojvc/6GClBipedB9zNWYxRSAlZXAe405Rlijzl6qDiSw==
2471+
typescript@^4.1.2:
2472+
version "4.1.2"
2473+
resolved "https://registry.npmjs.org/typescript/-/typescript-4.1.2.tgz#6369ef22516fe5e10304aae5a5c4862db55380e9"
2474+
integrity sha512-thGloWsGH3SOxv1SoY7QojKi0tc+8FnOmiarEGMbd/lar7QOEd3hvlx3Fp5y6FlDUGl9L+pd4n2e+oToGMmhRQ==
24752475

24762476
unicode-canonical-property-names-ecmascript@^1.0.4:
24772477
version "1.0.4"

0 commit comments

Comments
 (0)