Skip to content

Commit 1ed352d

Browse files
authored
Merge pull request #365 from ckeditor/i/364
Internal: Use dynamic imports to fix issues in the release process. Closes #364.
2 parents 893d71d + f1b3881 commit 1ed352d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

scripts/preparepackages.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,10 @@ const tasks = new Listr( [
6666
},
6767
{
6868
title: 'Creating the `ckeditor5-vue` package in the release directory.',
69-
task: () => {
69+
task: async () => {
7070
return releaseTools.prepareRepository( {
7171
outputDirectory: 'release',
72-
rootPackageJson: preparePackageJson()
72+
rootPackageJson: await preparePackageJson()
7373
} );
7474
}
7575
},

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)