From 7d181101f07475bbeecda4bbc07ed760a12c9489 Mon Sep 17 00:00:00 2001 From: Nicolas DUBIEN Date: Mon, 22 Jan 2024 07:39:56 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20Move=20website=20build=20chain?= =?UTF-8?q?=20to=20ESM?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- website/{babel.config.js => babel.config.cjs} | 0 website/{jest.config.cjs => jest.config.js} | 3 ++- website/package.json | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) rename website/{babel.config.js => babel.config.cjs} (100%) rename website/{jest.config.cjs => jest.config.js} (64%) diff --git a/website/babel.config.js b/website/babel.config.cjs similarity index 100% rename from website/babel.config.js rename to website/babel.config.cjs diff --git a/website/jest.config.cjs b/website/jest.config.js similarity index 64% rename from website/jest.config.cjs rename to website/jest.config.js index 7f1e2e53813..5e2ae281fe2 100644 --- a/website/jest.config.cjs +++ b/website/jest.config.js @@ -1,4 +1,5 @@ -module.exports = { +export default { testMatch: ['/**/*.spec.mjs'], testPathIgnorePatterns: ['/generated-tests/'], + extensionsToTreatAsEsm: ['.ts'], }; diff --git a/website/package.json b/website/package.json index 02c9adc32b2..b79cd4e62cc 100644 --- a/website/package.json +++ b/website/package.json @@ -1,6 +1,7 @@ { "private": true, "name": "website", + "type": "module", "scripts": { "docusaurus": "docusaurus", "start": "cp ../.all-contributorsrc src/components/HomepageContributors/all-contributors.json && docusaurus start",