Skip to content

Commit

Permalink
Aligned to ckeditor5-dev ESM changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
psmyrek committed Sep 19, 2024
1 parent cdf5a75 commit 8ba8e74
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion scripts/ci/is-project-ready-to-release.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
'use strict';

import { createRequire } from 'module';
import releaseTools from '@ckeditor/ckeditor5-dev-release-tools';
import * as releaseTools from '@ckeditor/ckeditor5-dev-release-tools';

const require = createRequire( import.meta.url );
const { name: packageName } = require( '../../package.json' );
Expand Down
6 changes: 3 additions & 3 deletions scripts/preparepackages.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@

import { createRequire } from 'module';
import { Listr } from 'listr2';
import releaseTools from '@ckeditor/ckeditor5-dev-release-tools';
import utils from '@ckeditor/ckeditor5-dev-utils';
import * as releaseTools from '@ckeditor/ckeditor5-dev-release-tools';
import * as devUtils from '@ckeditor/ckeditor5-dev-utils';
import parseArguments from './utils/parsearguments.js';
import getListrOptions from './utils/getlistroptions.js';

Expand Down Expand Up @@ -65,7 +65,7 @@ const tasks = new Listr( [
{
title: 'Running build command.',
task: () => {
return utils.tools.shExec( 'yarn run build', { async: true, verbosity: 'silent' } );
return devUtils.tools.shExec( 'yarn run build', { async: true, verbosity: 'silent' } );
}
},
{
Expand Down
5 changes: 2 additions & 3 deletions scripts/publishpackages.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
/* eslint-env node */

import { Listr } from 'listr2';
import releaseTools from '@ckeditor/ckeditor5-dev-release-tools';
import releaseCliUtils from '@ckeditor/ckeditor5-dev-release-tools/lib/utils/cli.js';
import * as releaseTools from '@ckeditor/ckeditor5-dev-release-tools';
import parseArguments from './utils/parsearguments.js';
import getListrOptions from './utils/getlistroptions.js';

Expand Down Expand Up @@ -89,7 +88,7 @@ const tasks = new Listr( [
if ( process.env.CKE5_RELEASE_TOKEN ) {
githubToken = process.env.CKE5_RELEASE_TOKEN;
} else {
githubToken = await releaseCliUtils.provideToken();
githubToken = await releaseTools.provideToken();
}

await tasks.run();
Expand Down

0 comments on commit 8ba8e74

Please sign in to comment.