Skip to content

Commit b756304

Browse files
authored
Merge pull request #608 from ckeditor/i/607
Internal: Use dynamic imports to fix issues in the release process. Closes #607.
2 parents ffee1bf + c9f44e6 commit b756304

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

scripts/preparepackages.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,10 @@ const tasks = new Listr( [
6565
},
6666
{
6767
title: 'Creating the `ckeditor5-react` package in the release directory.',
68-
task: () => {
68+
task: async () => {
6969
return releaseTools.prepareRepository( {
7070
outputDirectory: 'release',
71-
rootPackageJson: preparePackageJson()
71+
rootPackageJson: await preparePackageJson()
7272
} );
7373
}
7474
},

scripts/utils/preparepackagejson.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
44
*/
55

6-
import packageJson from '../../package.json' with { type: 'json' };
6+
export async function preparePackageJson() {
7+
const { default: packageJson } = await import( '../../package.json', { with: { type: 'json' } } );
78

8-
export function preparePackageJson() {
99
if ( packageJson.engines ) {
1010
delete packageJson.engines;
1111
}

0 commit comments

Comments
 (0)