From c01ad91a947886d10182a7ea8ff77e039dbdd6c7 Mon Sep 17 00:00:00 2001 From: David Baker Date: Tue, 20 Aug 2024 15:04:31 +0100 Subject: [PATCH 1/2] Rename prettier config file to .cjs For the same reason as https://github.com/matrix-org/matrix-js-sdk/pull/4353 --- .prettierrc.js => .prettierrc.cjs | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .prettierrc.js => .prettierrc.cjs (100%) diff --git a/.prettierrc.js b/.prettierrc.cjs similarity index 100% rename from .prettierrc.js rename to .prettierrc.cjs From cd4f30152f7666ac32cd84fa8c3f5eafc9b67217 Mon Sep 17 00:00:00 2001 From: David Baker Date: Wed, 21 Aug 2024 13:44:16 +0100 Subject: [PATCH 2/2] Call the commjs version of the switch script --- .github/workflows/static_analysis.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/static_analysis.yaml b/.github/workflows/static_analysis.yaml index 94ed2c7488..204d3c46f4 100644 --- a/.github/workflows/static_analysis.yaml +++ b/.github/workflows/static_analysis.yaml @@ -36,7 +36,7 @@ jobs: - name: Switch js-sdk to release mode working-directory: node_modules/matrix-js-sdk run: | - scripts/switch_package_to_release.js + scripts/switch_package_to_release.cjs yarn install yarn run build:compile yarn run build:types