From b77d999bbc4e0fa64ef00b4421ce7d25cf531130 Mon Sep 17 00:00:00 2001 From: f1ames Date: Fri, 8 Nov 2024 13:38:56 +0100 Subject: [PATCH] Internal: Fix invalid module import. --- _scripts/build.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_scripts/build.js b/_scripts/build.js index 683f06de..85ec4d66 100644 --- a/_scripts/build.js +++ b/_scripts/build.js @@ -180,8 +180,8 @@ async function createTemporaryPackageJson( samplesToBuild ) { */ async function useNightlyVersions( ckeditor5path ) { const packageJson = await fs.readJson( `${ DESTINATION_DIRECTORY }/package.json` ); - const isCKEditor5PackageFactory = require( path.join( ckeditor5path, 'scripts', 'release', 'utils', 'isckeditor5packagefactory' ) ); - const isCKEditor5Package = await isCKEditor5PackageFactory(); + const isCKEditor5PackageFactory = await import( path.join( ckeditor5path, 'scripts', 'release', 'utils', 'isckeditor5packagefactory.mjs' ) ); + const isCKEditor5Package = await isCKEditor5PackageFactory.default(); const samplePackageJsonPaths = packageJson.workspaces .map( workspace => `${ DESTINATION_DIRECTORY }/${ workspace }` )