From 17522706ada01e6d8a78f1f456a927ccb3ea9508 Mon Sep 17 00:00:00 2001 From: Nicholas Bollweg Date: Wed, 13 Dec 2023 08:02:18 -0600 Subject: [PATCH] fix patch log again --- src/jupyak/tasks/_js.ipynb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/jupyak/tasks/_js.ipynb b/src/jupyak/tasks/_js.ipynb index b6a6b5b..4ee3422 100644 --- a/src/jupyak/tasks/_js.ipynb +++ b/src/jupyak/tasks/_js.ipynb @@ -269,11 +269,12 @@ " \"scripts\": patch_package_json.scripts,\n", " \"devDependencies\": patch_package_json.dev_dependencies,\n", " }\n", - " print(f\"\"\" ... patching {package_json.parent.name}#{section}\"\"\")\n", + " name = pkg_data.get(\"name\")\n", + " print(f\"\"\" ... patching {name}#{section}\"\"\")\n", "\n", " for section, values in sections.items():\n", " if values:\n", - " print(f\"\"\" ... patching {pkg_data.get(\"name\")}#{section}\"\"\")\n", + " print(f\"\"\" ... patching {name}#{section}\"\"\")\n", " pkg_data.setdefault(section, {}).update(values)" ] },