@@ -32,10 +32,10 @@ gsub_file_content("../package.json", %r{"@testing-library/[^"]*": "[^"]*",}, "")
32
32
gsub_file_content ( "../package.json" , /,(\s *})/ , "\\ 1" )
33
33
34
34
# Switch to the oldest supported React version
35
- gsub_file_content ( "../package.json" , /"react": "[^"]*",/ , '"react": "16.14 .0",' )
36
- gsub_file_content ( "../package.json" , /"react-dom": "[^"]*",/ , '"react-dom": "16.14 .0",' )
37
- gsub_file_content ( "../spec/dummy/package.json" , /"react": "[^"]*",/ , '"react": "16.14 .0",' )
38
- gsub_file_content ( "../spec/dummy/package.json" , /"react-dom": "[^"]*",/ , '"react-dom": "16.14 .0",' )
35
+ gsub_file_content ( "../package.json" , /"react": "[^"]*",/ , '"react": "18.0 .0",' )
36
+ gsub_file_content ( "../package.json" , /"react-dom": "[^"]*",/ , '"react-dom": "18.0 .0",' )
37
+ gsub_file_content ( "../spec/dummy/package.json" , /"react": "[^"]*",/ , '"react": "18.0 .0",' )
38
+ gsub_file_content ( "../spec/dummy/package.json" , /"react-dom": "[^"]*",/ , '"react-dom": "18.0 .0",' )
39
39
gsub_file_content (
40
40
"../package.json" ,
41
41
"jest node_package/tests" ,
@@ -46,10 +46,6 @@ gsub_file_content("../tsconfig.json", "react-jsx", "react")
46
46
gsub_file_content ( "../spec/dummy/babel.config.js" , "runtime: 'automatic'" , "runtime: 'classic'" )
47
47
# https://rescript-lang.org/docs/react/latest/migrate-react#configuration
48
48
gsub_file_content ( "../spec/dummy/rescript.json" , '"version": 4' , '"version": 4, "mode": "classic"' )
49
- # Find all files under app-react16 and replace the React 19 versions
50
- Dir . glob ( File . expand_path ( "../spec/dummy/**/app-react16/**/*.*" , __dir__ ) ) . each do |file |
51
- move ( file , file . gsub ( "-react16" , "" ) )
52
- end
53
49
54
50
gsub_file_content ( "../spec/dummy/config/webpack/commonWebpackConfig.js" , /generateWebpackConfig(\( \) )?/ ,
55
51
"webpackConfig" )
0 commit comments