@ckeditor/ckeditor5-dev-release-tools 54.2.3 → 54.3.1
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/LICENSE.md +1 -1
- package/lib/index.js +1 -1
- package/lib/tasks/cleanuppackages.js +2 -2
- package/lib/tasks/commitandtag.js +1 -1
- package/lib/tasks/creategithubrelease.js +1 -1
- package/lib/tasks/preparerepository.js +12 -1
- package/lib/tasks/publishpackages.js +1 -1
- package/lib/tasks/push.js +1 -1
- package/lib/tasks/reassignnpmtags.js +1 -1
- package/lib/tasks/updatedependencies.js +2 -2
- package/lib/tasks/updateversions.js +2 -2
- package/lib/utils/abortcontroller.js +1 -1
- package/lib/utils/assertfilestopublish.js +1 -1
- package/lib/utils/assertnpmauthorization.js +1 -1
- package/lib/utils/assertnpmtag.js +1 -1
- package/lib/utils/assertpackages.js +1 -1
- package/lib/utils/configurereleaseoptions.js +1 -1
- package/lib/utils/confirmincludingpackage.js +1 -1
- package/lib/utils/confirmnpmtag.js +1 -1
- package/lib/utils/constants.js +1 -1
- package/lib/utils/executeinparallel.js +1 -1
- package/lib/utils/getchangelog.js +1 -1
- package/lib/utils/getchangesforversion.js +1 -1
- package/lib/utils/getnpmtagfromversion.js +1 -1
- package/lib/utils/parallelworker.js +1 -1
- package/lib/utils/providetoken.js +1 -1
- package/lib/utils/publishpackageonnpmcallback.js +1 -1
- package/lib/utils/resolvepublishoverrides.js +36 -0
- package/lib/utils/validaterepositorytorelease.js +1 -1
- package/lib/utils/versions.js +1 -1
- package/package.json +3 -3
package/LICENSE.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Software License Agreement
|
|
2
2
|
==========================
|
|
3
3
|
|
|
4
|
-
Copyright (c) 2003-
|
|
4
|
+
Copyright (c) 2003-2026, [CKSource](http://cksource.com) Holding sp. z o.o. All rights reserved.
|
|
5
5
|
|
|
6
6
|
Licensed under the terms of [GNU General Public License Version 2 or later](http://www.gnu.org/licenses/gpl.html).
|
|
7
7
|
|
package/lib/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md.
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -40,7 +40,7 @@ export default async function cleanUpPackages( options ) {
|
|
|
40
40
|
await cleanUpPackageDirectory( packageJson, packagePath );
|
|
41
41
|
cleanUpPackageJson( packageJson, packageJsonFieldsToRemove, preservePostInstallHook );
|
|
42
42
|
|
|
43
|
-
await fs.writeFile( packageJsonPath, JSON.stringify( packageJson, null, 2 ) );
|
|
43
|
+
await fs.writeFile( packageJsonPath, JSON.stringify( packageJson, null, 2 ) + '\n' );
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import fs from 'node:fs/promises';
|
|
7
7
|
import { glob } from 'glob';
|
|
8
8
|
import upath from 'upath';
|
|
9
|
+
import resolvePublishOverrides from '../utils/resolvepublishoverrides.js';
|
|
9
10
|
|
|
10
11
|
/**
|
|
11
12
|
* The goal is to prepare the release directory containing the packages we want to publish.
|
|
@@ -61,6 +62,16 @@ export default async function prepareRepository( options ) {
|
|
|
61
62
|
} );
|
|
62
63
|
}
|
|
63
64
|
|
|
65
|
+
const packageJsonPaths = await glob( '*/package.json', {
|
|
66
|
+
cwd: outputDirectoryPath,
|
|
67
|
+
absolute: true,
|
|
68
|
+
nodir: true
|
|
69
|
+
} );
|
|
70
|
+
|
|
71
|
+
for ( const packageJsonPath of packageJsonPaths ) {
|
|
72
|
+
await resolvePublishOverrides( packageJsonPath );
|
|
73
|
+
}
|
|
74
|
+
|
|
64
75
|
return Promise.resolve();
|
|
65
76
|
}
|
|
66
77
|
|
package/lib/tasks/push.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md.
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -58,7 +58,7 @@ export default async function updateDependencies( options ) {
|
|
|
58
58
|
updateVersion( version, shouldUpdateVersionCallback, pkgJson.devDependencies );
|
|
59
59
|
updateVersion( version, shouldUpdateVersionCallback, pkgJson.peerDependencies );
|
|
60
60
|
|
|
61
|
-
await fs.writeFile( pkgJsonPath, JSON.stringify( pkgJson, null, 2 ) );
|
|
61
|
+
await fs.writeFile( pkgJsonPath, JSON.stringify( pkgJson, null, 2 ) + '\n' );
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
64
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md.
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -55,7 +55,7 @@ export default async function updateVersions( options ) {
|
|
|
55
55
|
const pkgJson = JSON.parse( pkgJsonFile );
|
|
56
56
|
|
|
57
57
|
pkgJson.version = version;
|
|
58
|
-
await fs.writeFile( pkgJsonPath, JSON.stringify( pkgJson, null, 2 ) );
|
|
58
|
+
await fs.writeFile( pkgJsonPath, JSON.stringify( pkgJson, null, 2 ) + '\n' );
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
61
|
|
package/lib/utils/constants.js
CHANGED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import fs from 'node:fs/promises';
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Applies publish-time overrides to a `package.json` file.
|
|
10
|
+
*
|
|
11
|
+
* Fields defined in `publishConfig` replace their top-level counterparts in the manifest.
|
|
12
|
+
*
|
|
13
|
+
* @param {string} packageJsonPath Absolute path to a `package.json` file.
|
|
14
|
+
* @returns {Promise<void>}
|
|
15
|
+
*/
|
|
16
|
+
export default async function resolvePublishOverrides( packageJsonPath ) {
|
|
17
|
+
const raw = await fs.readFile( packageJsonPath, 'utf8' );
|
|
18
|
+
const { publishConfig, ...pkg } = JSON.parse( raw );
|
|
19
|
+
|
|
20
|
+
// Covers `undefined` and `null`.
|
|
21
|
+
if ( publishConfig == null ) {
|
|
22
|
+
return;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
if ( !isPlainObject( publishConfig ) ) {
|
|
26
|
+
throw new Error( `"publishConfig" in "${ packageJsonPath }" must be a plain object.` );
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
const publishPkg = { ...pkg, ...publishConfig };
|
|
30
|
+
|
|
31
|
+
await fs.writeFile( packageJsonPath, JSON.stringify( publishPkg, null, 2 ) + '\n' );
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
function isPlainObject( value ) {
|
|
35
|
+
return Object.prototype.toString.call( value ) === '[object Object]';
|
|
36
|
+
}
|
package/lib/utils/versions.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-dev-release-tools",
|
|
3
|
-
"version": "54.
|
|
3
|
+
"version": "54.3.1",
|
|
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": "^54.
|
|
25
|
+
"@ckeditor/ckeditor5-dev-utils": "^54.3.1",
|
|
26
26
|
"@octokit/rest": "^22.0.0",
|
|
27
27
|
"cli-columns": "^4.0.0",
|
|
28
28
|
"glob": "^13.0.0",
|
|
@@ -32,4 +32,4 @@
|
|
|
32
32
|
"simple-git": "^3.27.0",
|
|
33
33
|
"upath": "^2.0.1"
|
|
34
34
|
}
|
|
35
|
-
}
|
|
35
|
+
}
|