From 8232cc76f0fb820d4c31eefd5e92a8f14f5d9653 Mon Sep 17 00:00:00 2001 From: Mikhail Garbuzov Date: Fri, 7 Nov 2025 16:18:11 +0100 Subject: [PATCH 1/2] Fix codemod command for fs-truncate-fd-deprecation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When I started migrating my project to the new LTS version, I encountered an error when executing this code mod. ```bash > npx codemod run @nodejs/fs-truncate-to-ftruncate [1/2] 🔍 Resolving package from registry: https://app.codemod.com ... Error: Registry error: Package not found: @nodejs/fs-truncate-to-ftruncate ``` Signed-off-by: Mikhail Garbuzov --- apps/site/pages/en/blog/migrations/v22-to-v24.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/site/pages/en/blog/migrations/v22-to-v24.mdx b/apps/site/pages/en/blog/migrations/v22-to-v24.mdx index 116edd2e66d94..69bf87f0259c4 100644 --- a/apps/site/pages/en/blog/migrations/v22-to-v24.mdx +++ b/apps/site/pages/en/blog/migrations/v22-to-v24.mdx @@ -160,7 +160,7 @@ The source code for this codemod can be found in the [fs-truncate-fd-deprecation You can find this codemod in the [Codemod Registry](https://app.codemod.com/registry/@nodejs/fs-truncate-to-ftruncate). ```bash -npx codemod run @nodejs/fs-truncate-to-ftruncate +npx codemod run @nodejs/fs-truncate-fd-deprecation ``` #### Example: From 6a07c2e30e372d55cedc92f1c3ee1662cec906d3 Mon Sep 17 00:00:00 2001 From: Mikhail Garbuzov Date: Fri, 7 Nov 2025 17:24:09 +0100 Subject: [PATCH 2/2] suggestion fix link to codemod location Co-authored-by: Augustin Mauroy <97875033+AugustinMauroy@users.noreply.github.com> Signed-off-by: Mikhail Garbuzov --- apps/site/pages/en/blog/migrations/v22-to-v24.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/site/pages/en/blog/migrations/v22-to-v24.mdx b/apps/site/pages/en/blog/migrations/v22-to-v24.mdx index 69bf87f0259c4..80bf1f7f7ea53 100644 --- a/apps/site/pages/en/blog/migrations/v22-to-v24.mdx +++ b/apps/site/pages/en/blog/migrations/v22-to-v24.mdx @@ -157,7 +157,7 @@ The [`fs.truncate`](https://nodejs.org/api/fs.html#fs_fs_truncate_path_len_callb The source code for this codemod can be found in the [fs-truncate-fd-deprecation directory](https://github.com/nodejs/userland-migrations/tree/main/recipes/fs-truncate-fd-deprecation). -You can find this codemod in the [Codemod Registry](https://app.codemod.com/registry/@nodejs/fs-truncate-to-ftruncate). +You can find this codemod in the [Codemod Registry](https://app.codemod.com/registry/@nodejs/fs-truncate-fd-deprecation). ```bash npx codemod run @nodejs/fs-truncate-fd-deprecation