This repository was archived by the owner on Oct 15, 2019. It is now read-only.
File tree 3 files changed +10
-1
lines changed
3 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 65
65
"sass-loader" : " 7.1.0" ,
66
66
"style-loader" : " 0.23.0" ,
67
67
"terser-webpack-plugin" : " 1.1.0" ,
68
+ "typescript" : " ^3.1.6" ,
68
69
"url-loader" : " 1.1.1" ,
69
70
"webpack" : " 4.19.1" ,
70
71
"webpack-dev-server" : " 3.1.9" ,
Original file line number Diff line number Diff line change @@ -53,7 +53,10 @@ function verifyTypeScriptSetup() {
53
53
// Ensure typescript is installed
54
54
let ts ;
55
55
try {
56
- ts = require ( resolve . sync ( 'typescript' ) ) ;
56
+ // TODO: we temporarily added typescript to react-scripts because of https://github.com/facebook/create-react-app/issues/5647
57
+ ts = require ( resolve . sync ( 'typescript' , {
58
+ basedir : paths . appNodeModules ,
59
+ } ) ) ;
57
60
} catch ( _ ) {
58
61
console . error (
59
62
chalk . bold . red (
Original file line number Diff line number Diff line change @@ -8768,6 +8768,11 @@ typedarray@^0.0.6:
8768
8768
resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777"
8769
8769
integrity sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=
8770
8770
8771
+ typescript@^3.1.6 :
8772
+ version "3.1.6"
8773
+ resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.1.6.tgz#b6543a83cfc8c2befb3f4c8fba6896f5b0c9be68"
8774
+ integrity sha512-tDMYfVtvpb96msS1lDX9MEdHrW4yOuZ4Kdc4Him9oU796XldPYF/t2+uKoX0BBa0hXXwDlqYQbXY5Rzjzc5hBA==
8775
+
8771
8776
uglify-es@^3.3.4 :
8772
8777
version "3.3.9"
8773
8778
resolved "https://registry.yarnpkg.com/uglify-es/-/uglify-es-3.3.9.tgz#0c1c4f0700bed8dbc124cdb304d2592ca203e677"
You can’t perform that action at this time.
0 commit comments