From 6160a7962d7ff72db401168aa25fca874793d683 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Szcz=C4=99=C5=9Bniak?= Date: Thu, 16 May 2024 13:26:17 +0200 Subject: [PATCH 1/3] Add 'ckeditor5-premium-features' to external array to build package using NIM. --- .../lib/templates/legacy-js/scripts/build-dist.mjs.txt | 4 +++- .../lib/templates/legacy-ts/scripts/build-dist.mjs.txt | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/ckeditor5-package-generator/lib/templates/legacy-js/scripts/build-dist.mjs.txt b/packages/ckeditor5-package-generator/lib/templates/legacy-js/scripts/build-dist.mjs.txt index b6019278..545346da 100644 --- a/packages/ckeditor5-package-generator/lib/templates/legacy-js/scripts/build-dist.mjs.txt +++ b/packages/ckeditor5-package-generator/lib/templates/legacy-js/scripts/build-dist.mjs.txt @@ -30,6 +30,7 @@ function dist( path ) { output: dist( './index.js' ), external: [ 'ckeditor5', + 'ckeditor5-premium-features', ...Object.keys( { ...pkg.dependencies, ...pkg.peerDependencies @@ -53,7 +54,8 @@ function dist( path ) { browser: true, name: '<%= formattedNames.plugin.lowerCaseMerged %>', external: [ - 'ckeditor5' + 'ckeditor5', + 'ckeditor5-premium-features' ] } ); } )(); diff --git a/packages/ckeditor5-package-generator/lib/templates/legacy-ts/scripts/build-dist.mjs.txt b/packages/ckeditor5-package-generator/lib/templates/legacy-ts/scripts/build-dist.mjs.txt index b4a964ae..89469a4b 100644 --- a/packages/ckeditor5-package-generator/lib/templates/legacy-ts/scripts/build-dist.mjs.txt +++ b/packages/ckeditor5-package-generator/lib/templates/legacy-ts/scripts/build-dist.mjs.txt @@ -33,6 +33,7 @@ function dist( path ) { tsconfig: 'tsconfig.dist.json', external: [ 'ckeditor5', + 'ckeditor5-premium-features', ...Object.keys( { ...pkg.dependencies, ...pkg.peerDependencies @@ -57,7 +58,8 @@ function dist( path ) { browser: true, name: '<%= formattedNames.plugin.lowerCaseMerged %>', external: [ - 'ckeditor5' + 'ckeditor5', + 'ckeditor5-premium-features' ] } ); } )(); From 66b23d763b153c623661f34c8c42798e4cb50dd1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Szcz=C4=99=C5=9Bniak?= Date: Fri, 17 May 2024 19:25:52 +0200 Subject: [PATCH 2/3] Added missing '/dist' entry for gitignore files. --- .../lib/templates/legacy-ts/.gitignore.txt | 1 + .../ckeditor5-package-generator/lib/templates/ts/.gitignore.txt | 1 + 2 files changed, 2 insertions(+) diff --git a/packages/ckeditor5-package-generator/lib/templates/legacy-ts/.gitignore.txt b/packages/ckeditor5-package-generator/lib/templates/legacy-ts/.gitignore.txt index c69876b5..437dda1d 100644 --- a/packages/ckeditor5-package-generator/lib/templates/legacy-ts/.gitignore.txt +++ b/packages/ckeditor5-package-generator/lib/templates/legacy-ts/.gitignore.txt @@ -1,5 +1,6 @@ build/ coverage/ +dist/ node_modules/ tmp/ sample/ckeditor.dist.js diff --git a/packages/ckeditor5-package-generator/lib/templates/ts/.gitignore.txt b/packages/ckeditor5-package-generator/lib/templates/ts/.gitignore.txt index c69876b5..437dda1d 100644 --- a/packages/ckeditor5-package-generator/lib/templates/ts/.gitignore.txt +++ b/packages/ckeditor5-package-generator/lib/templates/ts/.gitignore.txt @@ -1,5 +1,6 @@ build/ coverage/ +dist/ node_modules/ tmp/ sample/ckeditor.dist.js From 4fa56f986583e61dbcef9257f5116f8572a21ba7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Szcz=C4=99=C5=9Bniak?= Date: Mon, 20 May 2024 12:39:50 +0200 Subject: [PATCH 3/3] Update 'ckeditor5-dev-*' dependencies to the newest version. --- package.json | 8 ++++---- packages/ckeditor5-package-generator/package.json | 2 +- packages/ckeditor5-package-tools/package.json | 6 +++--- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/package.json b/package.json index 258dd70d..51bb40a2 100644 --- a/package.json +++ b/package.json @@ -17,10 +17,10 @@ "license": "MIT", "homepage": "https://ckeditor.com/ckeditor-5", "devDependencies": { - "@ckeditor/ckeditor5-dev-bump-year": "^38.0.0", - "@ckeditor/ckeditor5-dev-ci": "^38.0.0", - "@ckeditor/ckeditor5-dev-release-tools": "^38.0.0", - "@ckeditor/ckeditor5-dev-web-crawler": "^38.0.0", + "@ckeditor/ckeditor5-dev-bump-year": "^40.0.1", + "@ckeditor/ckeditor5-dev-ci": "^40.0.1", + "@ckeditor/ckeditor5-dev-release-tools": "^40.0.1", + "@ckeditor/ckeditor5-dev-web-crawler": "^40.0.1", "chalk": "^4.1.2", "coveralls": "^3.1.1", "eslint": "^7.32.0", diff --git a/packages/ckeditor5-package-generator/package.json b/packages/ckeditor5-package-generator/package.json index f59f39d8..99bec056 100644 --- a/packages/ckeditor5-package-generator/package.json +++ b/packages/ckeditor5-package-generator/package.json @@ -10,7 +10,7 @@ "node": ">=18.0.0" }, "dependencies": { - "@ckeditor/ckeditor5-dev-utils": "^38.0.0", + "@ckeditor/ckeditor5-dev-utils": "^40.0.1", "chalk": "^4.1.2", "commander": "^8.1.0", "glob": "^7.1.7", diff --git a/packages/ckeditor5-package-tools/package.json b/packages/ckeditor5-package-tools/package.json index f27a9629..db134bd8 100644 --- a/packages/ckeditor5-package-tools/package.json +++ b/packages/ckeditor5-package-tools/package.json @@ -11,9 +11,9 @@ ], "main": "lib/index.js", "dependencies": { - "@ckeditor/ckeditor5-dev-transifex": "^38.0.0", - "@ckeditor/ckeditor5-dev-translations": "^38.0.0", - "@ckeditor/ckeditor5-dev-utils": "^38.0.0", + "@ckeditor/ckeditor5-dev-transifex": "^40.0.1", + "@ckeditor/ckeditor5-dev-translations": "^40.0.1", + "@ckeditor/ckeditor5-dev-utils": "^40.0.1", "buffer": "^6.0.3", "chai": "^4.3.4", "css-loader": "^5.2.7",