From ecc2968bc377a0c377fba50bb24104b5a2a7332a Mon Sep 17 00:00:00 2001 From: Victor Fernandez de Alba Date: Tue, 11 Jun 2024 16:02:04 +0200 Subject: [PATCH] Remove `@plone/components` from deps, on release it is complex to handle, we will do it when it really matters. Fix also version sync script on release --- .../{{ cookiecutter.frontend_addon_name }}/.release-it.json | 2 +- .../{{ cookiecutter.frontend_addon_name }}/package.json | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/frontend_addon/{{ cookiecutter.__folder_name }}/packages/{{ cookiecutter.frontend_addon_name }}/.release-it.json b/frontend_addon/{{ cookiecutter.__folder_name }}/packages/{{ cookiecutter.frontend_addon_name }}/.release-it.json index f1b6bdb..9ef4f97 100644 --- a/frontend_addon/{{ cookiecutter.__folder_name }}/packages/{{ cookiecutter.frontend_addon_name }}/.release-it.json +++ b/frontend_addon/{{ cookiecutter.__folder_name }}/packages/{{ cookiecutter.frontend_addon_name }}/.release-it.json @@ -4,7 +4,7 @@ "pipx run towncrier build --draft --yes --version ${version} > .changelog.draft", "pipx run towncrier build --yes --version ${version}", "cp ../../README.md ./ && cp CHANGELOG.md ../../CHANGELOG.md", - "python3 -c 'import json; data = json.load(open(\"../../package.json\")); data[\"version\"] = ${version}; json.dump(data, open(\"../../package.json\", \"w\"), indent=2)'", + "python3 -c 'import json; data = json.load(open(\"../../package.json\")); data[\"version\"] = \"${version}\"; json.dump(data, open(\"../../package.json\", \"w\"), indent=2)'", "git add ../../CHANGELOG.md ../../package.json" ], "after:release": "rm .changelog.draft README.md" diff --git a/frontend_addon/{{ cookiecutter.__folder_name }}/packages/{{ cookiecutter.frontend_addon_name }}/package.json b/frontend_addon/{{ cookiecutter.__folder_name }}/packages/{{ cookiecutter.frontend_addon_name }}/package.json index 9586220..fb87c6b 100644 --- a/frontend_addon/{{ cookiecutter.__folder_name }}/packages/{{ cookiecutter.frontend_addon_name }}/package.json +++ b/frontend_addon/{{ cookiecutter.__folder_name }}/packages/{{ cookiecutter.frontend_addon_name }}/package.json @@ -26,9 +26,7 @@ "release-major-alpha": "release-it major --preRelease=alpha", "release-alpha": "release-it --preRelease=alpha" }, - "dependencies": { - "@plone/components": "{{ cookiecutter.__version_plone_components }}" - }, + "dependencies": {}, "peerDependencies": { "react": "18.2.0", "react-dom": "18.2.0",