Skip to content

Commit

Permalink
fix(next-lint): do not pass absolute path to distDir (#62797)
Browse files Browse the repository at this point in the history
This PR reverts part of #61877 passing an absolute path to the distDir
value when running `next lint`.

Fixes #62796

Co-authored-by: Sam Ko <sam@vercel.com>
  • Loading branch information
devjiwonchoi and samcx authored Mar 4, 2024
1 parent a1c9c3b commit 882aa6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/next/src/cli/next-lint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ const nextLint = async (options: NextLintOptions, directory?: string) => {

await verifyTypeScriptSetup({
dir: baseDir,
distDir: distDir,
distDir: nextConfig.distDir,
intentDirs: [pagesDir, appDir].filter(Boolean) as string[],
typeCheckPreflight: false,
tsconfigPath: nextConfig.typescript.tsconfigPath,
Expand Down

0 comments on commit 882aa6d

Please sign in to comment.