Skip to content

Commit a74f298

Browse files
committed
Remove more packages in convert script
1 parent fb17144 commit a74f298

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

script/convert

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,12 @@ gsub_file_content("../Gemfile.development_dependencies", /gem "shakapacker", "[^
2121
gsub_file_content("../spec/dummy/package.json", /"shakapacker": "[^"]*",/, '"shakapacker": "6.6.0",')
2222

2323
# The below packages don't work on the oldest supported Node version and aren't needed there anyway
24-
gsub_file_content("../package.json", /"eslint": "[^"]*",/, "")
25-
gsub_file_content("../package.json", /"eslint-plugin-jest": "[^"]*",/, "")
24+
gsub_file_content("../package.json", /"[^"]*eslint[^"]*": "[^"]*",/, "")
2625
gsub_file_content("../package.json", /"globals": "[^"]*",/, "")
2726
gsub_file_content("../package.json", /"knip": "[^"]*",/, "")
2827
gsub_file_content("../package.json", /"publint": "[^"]*",/, "")
29-
gsub_file_content("../package.json", /"typescript-eslint": "[^"]*",/, "")
3028
gsub_file_content("../package.json", %r{"@arethetypeswrong/cli": "[^"]*",}, "")
31-
gsub_file_content("../package.json", %r{"@eslint/compat": "[^"]*",}, "")
32-
gsub_file_content("../package.json", %r{"@testing-library/dom": "[^"]*",}, "")
33-
gsub_file_content("../package.json", %r{"@testing-library/react": "[^"]*",}, "")
29+
gsub_file_content("../package.json", %r{"@testing-library/[^"]*": "[^"]*",}, "")
3430

3531
# Switch to the oldest supported React version
3632
gsub_file_content("../package.json", /"react": "[^"]*",/, '"react": "16.14.0",')

0 commit comments

Comments
 (0)