npx @strapi/upgrade minor Invalid codemods directory provided (5.10.0)
### Node Version

20.18.3

### NPM/Yarn/PNPM Version

11.0.0

### Strapi Version

5.9.0

### Operating System

Linux (Debian/Ubuntu)

### Database

PostgreSQL

### Javascript or Typescript

Typescript

### Reproduction URL

_No response_

### Bug Description

When using upgrade tool: npx @strapi/upgrade minor to upgrade 5.9.0 -> 5.10.0 I got:

`# npx @strapi/upgrade minor

Need to install the following packages:
@strapi/upgrade@5.10.0
Ok to proceed? (y)

[WARN]  [2025-02-13T06:33:12.411Z] Please make sure you've created a backup of your codebase and files before upgrading
[INFO]  [2025-02-13T06:33:12.767Z] Upgrading from v5.9.0 to v5.10.0
[INFO]  [2025-02-13T06:33:12.772Z] (1/4) Checking requirement...
[INFO]  [2025-02-13T06:33:12.846Z] (2/4) Applying the latest code modifications...
[ERROR] [2025-02-13T06:33:12.847Z] Invalid codemods directory provided "/root/.npm/_npx/6858f854713ad077/node_modules/@strapi/upgrade/dist/resources/codemods"`

This last path has no resources folder.

### Steps to Reproduce

Run: 
npx @strapi/upgrade minor

### Expected Behavior

Upgrade tool should pass with success.

### Logs

```shell
[WARN] [2025-02-13T06:33:12.411Z] Please make sure you've created a backup of your codebase and files before upgrading
[INFO] [2025-02-13T06:33:12.767Z] Upgrading from v5.9.0 to v5.10.0
[INFO] [2025-02-13T06:33:12.772Z] (1/4) Checking requirement...
[INFO] [2025-02-13T06:33:12.846Z] (2/4) Applying the latest code modifications...
[ERROR] [2025-02-13T06:33:12.847Z] Invalid codemods directory provided "/root/.npm/_npx/6858f854713ad077/node_modules/@strapi/upgrade/dist/resources/codemods"
```

### Code Snippets

_No response_

### Media

_No response_

### Additional information

_No response_

### Confirmation Checklist

- [x] I have checked the existing [issues](https://github.com/strapi/strapi/issues) for duplicates.
- [x] I agree to follow this project's [Code of Conduct](https://github.com/strapi/strapi/blob/develop/CODE_OF_CONDUCT.md).