From f8ac929781752ece11013d1d3f8a12dcf8acda23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Chalifour?= Date: Sun, 28 Oct 2018 09:48:12 +0100 Subject: [PATCH] feat(react): upgrade to react-scripts@2 (#300) - Update to `react-scripts@2` - Update React version - Update React DOM version - Add `browserslist` for `react-scripts@2` - Downgrade ESLint to 5.6.0 as a requirement to `react-scripts@2` --- scripts/__snapshots__/e2e-templates.test.js.snap | 6 ++++++ src/templates/React InstantSearch/package.json | 16 +++++++++++----- 2 files changed, 17 insertions(+), 5 deletions(-) diff --git a/scripts/__snapshots__/e2e-templates.test.js.snap b/scripts/__snapshots__/e2e-templates.test.js.snap index ea6d353b4..792398d19 100644 --- a/scripts/__snapshots__/e2e-templates.test.js.snap +++ b/scripts/__snapshots__/e2e-templates.test.js.snap @@ -3688,6 +3688,12 @@ exports[`Templates React InstantSearch File content: package.json 1`] = ` \\"lint\\": \\"eslint .\\", \\"lint:fix\\": \\"npm run lint -- --fix\\" }, + \\"browserslist\\": [ + \\">0.2%\\", + \\"not dead\\", + \\"not ie <= 11\\", + \\"not op_mini all\\" + ], \\"partialDependencies\\": { \\"react-instantsearch-dom\\": \\"1.0.0\\" } diff --git a/src/templates/React InstantSearch/package.json b/src/templates/React InstantSearch/package.json index fd3098353..b295ed2de 100644 --- a/src/templates/React InstantSearch/package.json +++ b/src/templates/React InstantSearch/package.json @@ -10,13 +10,13 @@ }, "dependencies": { "algoliasearch": "3.30.0", - "react": "16.5.2", - "react-dom": "16.5.2", + "react": "16.6.0", + "react-dom": "16.6.0", "react-instantsearch-dom": "{{libraryVersion}}", - "react-scripts": "1.1.5" + "react-scripts": "2.0.5" }, "devDependencies": { - "eslint": "5.7.0", + "eslint": "5.6.0", "eslint-config-algolia": "13.2.3", "eslint-config-prettier": "3.1.0", "eslint-plugin-import": "2.14.0", @@ -24,5 +24,11 @@ "eslint-plugin-react": "7.11.1", "prettier": "1.14.3", "prop-types": "15.6.2" - } + }, + "browserslist": [ + ">0.2%", + "not dead", + "not ie <= 11", + "not op_mini all" + ] }