Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions scripts/preparepackages.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,10 @@ const tasks = new Listr( [
},
{
title: 'Creating the `ckeditor5-vue` package in the release directory.',
task: () => {
task: async () => {
return releaseTools.prepareRepository( {
outputDirectory: 'release',
rootPackageJson: preparePackageJson()
rootPackageJson: await preparePackageJson()
} );
}
},
Expand Down
4 changes: 2 additions & 2 deletions scripts/utils/preparepackagejson.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

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

export function preparePackageJson() {
if ( packageJson.engines ) {
delete packageJson.engines;
}
Expand Down