Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
b650b2d5
Commit
b650b2d5
authored
Aug 29, 2025
by
Ben Gubler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: remove redundant POSIX normalize
parent
fdf1762c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
6 deletions
+1
-6
writeAppTypeDeclarations.ts
packages/next/src/lib/typescript/writeAppTypeDeclarations.ts
+1
-6
No files found.
packages/next/src/lib/typescript/writeAppTypeDeclarations.ts
View file @
b650b2d5
...
@@ -62,13 +62,8 @@ export async function writeAppTypeDeclarations({
...
@@ -62,13 +62,8 @@ export async function writeAppTypeDeclarations({
'types/routes.d.ts'
'types/routes.d.ts'
)
)
// Ensure the path is POSIX-compliant for imports.
const
routeTypesPathPosix
=
routeTypesPath
.
split
(
path
.
sep
)
.
join
(
path
.
posix
.
sep
)
// Use ESM import instead of triple-slash reference for better ESLint compatibility
// Use ESM import instead of triple-slash reference for better ESLint compatibility
directives
.
push
(
`import "./
${
routeTypesPath
Posix
}
";`
)
directives
.
push
(
`import "./
${
routeTypesPath
}
";`
)
// Push the notice in.
// Push the notice in.
directives
.
push
(
directives
.
push
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment