@ckeditor/ckeditor5-dev-release-tools 44.2.0 → 45.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.js CHANGED
@@ -30,7 +30,6 @@ export { default as saveChangelog } from './utils/savechangelog.js';
30
30
  export { default as executeInParallel } from './utils/executeinparallel.js';
31
31
  export { default as validateRepositoryToRelease } from './utils/validaterepositorytorelease.js';
32
32
  export { default as checkVersionAvailability } from './utils/checkversionavailability.js';
33
- export { default as verifyPackagesPublishedCorrectly } from './tasks/verifypackagespublishedcorrectly.js';
34
33
  export { default as getNpmTagFromVersion } from './utils/getnpmtagfromversion.js';
35
34
  export { default as isVersionPublishableForTag } from './utils/isversionpublishablefortag.js';
36
35
  export { default as provideToken } from './utils/providetoken.js';
@@ -21,5 +21,9 @@ export default function getNpmTagFromVersion( version ) {
21
21
  return 'nightly';
22
22
  }
23
23
 
24
+ if ( versionTag.startsWith( 'internal' ) ) {
25
+ return 'internal';
26
+ }
27
+
24
28
  return versionTag;
25
29
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-dev-release-tools",
3
- "version": "44.2.0",
3
+ "version": "45.0.0",
4
4
  "description": "Tools used for releasing CKEditor 5 and related packages.",
5
5
  "keywords": [],
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -22,7 +22,7 @@
22
22
  "lib"
23
23
  ],
24
24
  "dependencies": {
25
- "@ckeditor/ckeditor5-dev-utils": "^44.2.0",
25
+ "@ckeditor/ckeditor5-dev-utils": "^45.0.0",
26
26
  "@octokit/rest": "^21.0.0",
27
27
  "chalk": "^5.0.0",
28
28
  "cli-columns": "^4.0.0",
@@ -1,59 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md.
4
- */
5
-
6
- import upath from 'upath';
7
- import { glob } from 'glob';
8
- import fs from 'fs-extra';
9
- import checkVersionAvailability from '../utils/checkversionavailability.js';
10
-
11
- /**
12
- * Npm sometimes throws incorrect error 409 while publishing, while the package uploads correctly.
13
- * The purpose of the script is to validate if packages that threw 409 are uploaded correctly to npm.
14
- *
15
- * @param {object} options
16
- * @param {string} options.packagesDirectory Relative path to a location of packages to release.
17
- * @param {string} options.version Version of the current release.
18
- * @param {function} options.onSuccess Callback fired when function is successful.
19
- * @returns {Promise}
20
- */
21
- export default async function verifyPackagesPublishedCorrectly( options ) {
22
- process.emitWarning(
23
- 'The `verifyPackagesPublishedCorrectly()` function is deprecated and will be removed in the upcoming release (v45). ' +
24
- 'Its responsibility has been merged with `publishPackages()`.',
25
- {
26
- type: 'DeprecationWarning',
27
- code: 'DEP0001',
28
- detail: 'https://github.com/ckeditor/ckeditor5-dev/blob/master/DEPRECATIONS.md#dep0001-verifypackagespublishedcorrectly'
29
- }
30
- );
31
-
32
- const { packagesDirectory, version, onSuccess } = options;
33
- const packagesToVerify = await glob( upath.join( packagesDirectory, '*' ), { absolute: true } );
34
- const errors = [];
35
-
36
- if ( !packagesToVerify.length ) {
37
- onSuccess( 'No packages found to check for upload error 409.' );
38
-
39
- return;
40
- }
41
-
42
- for ( const packageToVerify of packagesToVerify ) {
43
- const packageJson = await fs.readJson( upath.join( packageToVerify, 'package.json' ) );
44
-
45
- const isPackageVersionAvailable = await checkVersionAvailability( version, packageJson.name );
46
-
47
- if ( isPackageVersionAvailable ) {
48
- errors.push( packageJson.name );
49
- } else {
50
- await fs.remove( packageToVerify );
51
- }
52
- }
53
-
54
- if ( errors.length ) {
55
- throw new Error( 'Packages that were uploaded incorrectly, and need manual verification:\n' + errors.join( '\n' ) );
56
- }
57
-
58
- onSuccess( 'All packages that returned 409 were uploaded correctly.' );
59
- }