From 15099da9dd2cc225c45e1970a90072b27a18ae6a Mon Sep 17 00:00:00 2001 From: Andreas Herrmann Date: Thu, 10 Mar 2022 14:15:18 +0100 Subject: [PATCH] Update puppeteer for M1 support See https://github.com/puppeteer/puppeteer/issues/6622#issuecomment-906476717 changelog_begin - [Daml Assistant] The create-daml-app template now depends on a more recent version of puppeteer to ensure MacOS M1 support. See https://github.com/puppeteer/puppeteer/issues/6622#issuecomment-906476717 This also requires a later version of react-scripts for compatibility with later Chrome versions, See https://github.com/webpack/webpack-dev-server/issues/1491 changelog_end --- compatibility/bazel_tools/create-daml-app/testDeps.json | 2 +- templates/create-daml-app-test-resources/testDeps.json | 2 +- templates/create-daml-app/ui/package.json.template | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/compatibility/bazel_tools/create-daml-app/testDeps.json b/compatibility/bazel_tools/create-daml-app/testDeps.json index cd47be24a141..3544b1a4a86a 100644 --- a/compatibility/bazel_tools/create-daml-app/testDeps.json +++ b/compatibility/bazel_tools/create-daml-app/testDeps.json @@ -4,7 +4,7 @@ "@types/node": "^13.11.1", "@types/puppeteer": "^3.0.1", "@types/wait-on": "^4.0.0", - "puppeteer": "^4.0.1", + "puppeteer": "^10.0.0", "wait-on": "^4.0.2" } } diff --git a/templates/create-daml-app-test-resources/testDeps.json b/templates/create-daml-app-test-resources/testDeps.json index cd47be24a141..3544b1a4a86a 100644 --- a/templates/create-daml-app-test-resources/testDeps.json +++ b/templates/create-daml-app-test-resources/testDeps.json @@ -4,7 +4,7 @@ "@types/node": "^13.11.1", "@types/puppeteer": "^3.0.1", "@types/wait-on": "^4.0.0", - "puppeteer": "^4.0.1", + "puppeteer": "^10.0.0", "wait-on": "^4.0.2" } } diff --git a/templates/create-daml-app/ui/package.json.template b/templates/create-daml-app/ui/package.json.template index 2d43246c0fdd..c4e07cf32866 100644 --- a/templates/create-daml-app/ui/package.json.template +++ b/templates/create-daml-app/ui/package.json.template @@ -43,7 +43,7 @@ "@types/react-dom": "^17.0.0", "@types/dotenv": "^8.2.0", "http-proxy-middleware": "^1.0.4", - "react-scripts": "^4.0.3", + "react-scripts": "^5.0.0", "typescript": "~3.8.3" } }