Skip to content

Commit c49bc15

Browse files
chore(docs): Update codemod command for fs-truncate-fd-deprecation (#8338)
* Fix codemod command for fs-truncate-fd-deprecation 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 <madmxg@gmail.com> * suggestion fix link to codemod location Co-authored-by: Augustin Mauroy <97875033+AugustinMauroy@users.noreply.github.com> Signed-off-by: Mikhail Garbuzov <madmxg@gmail.com> --------- Signed-off-by: Mikhail Garbuzov <madmxg@gmail.com> Co-authored-by: Augustin Mauroy <97875033+AugustinMauroy@users.noreply.github.com>
1 parent ccdee78 commit c49bc15

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/site/pages/en/blog/migrations/v22-to-v24.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,10 +157,10 @@ The [`fs.truncate`](https://nodejs.org/api/fs.html#fs_fs_truncate_path_len_callb
157157

158158
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).
159159

160-
You can find this codemod in the [Codemod Registry](https://app.codemod.com/registry/@nodejs/fs-truncate-to-ftruncate).
160+
You can find this codemod in the [Codemod Registry](https://app.codemod.com/registry/@nodejs/fs-truncate-fd-deprecation).
161161

162162
```bash
163-
npx codemod run @nodejs/fs-truncate-to-ftruncate
163+
npx codemod run @nodejs/fs-truncate-fd-deprecation
164164
```
165165

166166
#### Example:

0 commit comments

Comments
 (0)