From b0f8ed4d3d81f46c92c95d881384768173366dc8 Mon Sep 17 00:00:00 2001 From: Kamil Piechaczek Date: Wed, 8 Mar 2023 13:41:35 +0100 Subject: [PATCH] Internal: Define ckeditor5 package as peer dependency to enable installing the generated package with the newest CKEditor 5 versions. --- .../lib/templates/js/package.json | 7 ++++--- .../lib/templates/ts/package.json | 7 ++++--- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/packages/ckeditor5-package-generator/lib/templates/js/package.json b/packages/ckeditor5-package-generator/lib/templates/js/package.json index 778c8b96..d0044935 100644 --- a/packages/ckeditor5-package-generator/lib/templates/js/package.json +++ b/packages/ckeditor5-package-generator/lib/templates/js/package.json @@ -24,9 +24,6 @@ "build", "ckeditor5-metadata.json" ], - "dependencies": { - "ckeditor5": ">=<%= packageVersions.ckeditor5 %>" - }, "devDependencies": { "@ckeditor/ckeditor5-autoformat": ">=<%= packageVersions.ckeditor5 %>", "@ckeditor/ckeditor5-basic-styles": ">=<%= packageVersions.ckeditor5 %>", @@ -47,6 +44,7 @@ "@ckeditor/ckeditor5-table": ">=<%= packageVersions.ckeditor5 %>", "@ckeditor/ckeditor5-theme-lark": ">=<%= packageVersions.ckeditor5 %>", "@ckeditor/ckeditor5-upload": ">=<%= packageVersions.ckeditor5 %>", + "ckeditor5": ">=<%= packageVersions.ckeditor5 %>", "eslint": "^7.32.0", "eslint-config-ckeditor5": ">=<%= packageVersions.eslintConfigCkeditor5 %>", "http-server": "^14.1.0", @@ -55,6 +53,9 @@ "stylelint": "^13.13.1", "stylelint-config-ckeditor5": ">=<%= packageVersions.stylelintConfigCkeditor5 %>" }, + "peerDependencies": { + "ckeditor5": ">=<%= packageVersions.ckeditor5 %>" + }, "scripts": { "dll:build": "ckeditor5-package-tools dll:build", "dll:serve": "http-server ./ -o sample/dll.html", diff --git a/packages/ckeditor5-package-generator/lib/templates/ts/package.json b/packages/ckeditor5-package-generator/lib/templates/ts/package.json index c55791c1..6aa10564 100644 --- a/packages/ckeditor5-package-generator/lib/templates/ts/package.json +++ b/packages/ckeditor5-package-generator/lib/templates/ts/package.json @@ -25,9 +25,6 @@ "build", "ckeditor5-metadata.json" ], - "dependencies": { - "ckeditor5": ">=<%= packageVersions.ckeditor5 %>" - }, "devDependencies": { "@ckeditor/ckeditor5-autoformat": ">=<%= packageVersions.ckeditor5 %>", "@ckeditor/ckeditor5-basic-styles": ">=<%= packageVersions.ckeditor5 %>", @@ -52,6 +49,7 @@ "@types/mocha": "^9.1.1", "@typescript-eslint/eslint-plugin": "~5.43.0", "@typescript-eslint/parser": "^5.18.0", + "ckeditor5": ">=<%= packageVersions.ckeditor5 %>", "eslint": "^7.32.0", "eslint-config-ckeditor5": ">=<%= packageVersions.eslintConfigCkeditor5 %>", "http-server": "^14.1.0", @@ -62,6 +60,9 @@ "ts-node": "^10.9.1", "typescript": "^4.7.4" }, + "peerDependencies": { + "ckeditor5": ">=<%= packageVersions.ckeditor5 %>" + }, "scripts": { "ts:build": "tsc -p ./tsconfig.release.json", "ts:clear": "npx rimraf \"src/**/*.@(js|d.ts)\"",