You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Scripts: migrate unpack-next to TypeScript (#77538)
## Convert unpack-next.cjs to TypeScript
### What?
Converted `scripts/unpack-next.cjs` to TypeScript, renaming it to
`scripts/unpack-next.ts` and updating the imports and type definitions.
### Why?
This change continues the ongoing TypeScript migration efforts in the
codebase, providing better type safety and developer experience.
### How?
- Renamed file from `.cjs` to `.ts`
- Converted CommonJS `require()` statements to ES module `import`
statements
- Added type annotation for the `path` parameter in the `realPathIfAny`
function
Fixes #
0 commit comments