Skip to content

Commit

Permalink
Internal: Fix invalid module import.
Browse files Browse the repository at this point in the history
  • Loading branch information
f1ames committed Nov 8, 2024
1 parent 292ae47 commit b77d999
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _scripts/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 }` )
Expand Down

0 comments on commit b77d999

Please sign in to comment.