@@ -26,12 +26,15 @@ gsub_file_content("../package.json", /"eslint-plugin-jest": "[^"]*",/, "")
2626gsub_file_content ( "../package.json" , /"globals": "[^"]*",/ , "" )
2727gsub_file_content ( "../package.json" , /"knip": "[^"]*",/ , "" )
2828gsub_file_content ( "../package.json" , /"publint": "[^"]*",/ , "" )
29- gsub_file_content ( "../package.json" , /"typescript-eslint": "[^"]*",/ , "" )
29+ gsub_file_content ( "../package.json" , /"typescript-eslint": "[^"]*",? / , "" )
3030gsub_file_content ( "../package.json" , %r{"@arethetypeswrong/cli": "[^"]*",} , "" )
3131gsub_file_content ( "../package.json" , %r{"@eslint/compat": "[^"]*",} , "" )
3232gsub_file_content ( "../package.json" , %r{"@testing-library/dom": "[^"]*",} , "" )
3333gsub_file_content ( "../package.json" , %r{"@testing-library/react": "[^"]*",} , "" )
3434
35+ # Clean up any trailing commas before closing braces
36+ gsub_file_content ( "../package.json" , /,(\s *})/ , "\\ 1" )
37+
3538# Switch to the oldest supported React version
3639gsub_file_content ( "../package.json" , /"react": "[^"]*",/ , '"react": "16.14.0",' )
3740gsub_file_content ( "../package.json" , /"react-dom": "[^"]*",/ , '"react-dom": "16.14.0",' )
0 commit comments