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 cc26aae commit 7517de6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 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 @@ -8,7 +8,7 @@
/* eslint-env node */

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
4 changes: 2 additions & 2 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 devUtils 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
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 7517de6

Please sign in to comment.