Unverified Commit a6315f2e authored by Jiwon Choi's avatar Jiwon Choi Committed by GitHub

fix: eslint-config-next types was exporting to dist/src (#85768)

`eslint-config-next` types were being emitted to `dist/src` instead of
`dist/` during build.

| Before | After |
|--------|--------|
| <img width="422" height="452" alt="CleanShot 2025-11-04 at 15 50
38@2x"
src="https://github.com/user-attachments/assets/09c96d1a-41ba-4da9-87c6-bc05257c6e2a"
/> | <img width="386" height="488" alt="CleanShot 2025-11-04 at 15 50
01@2x"
src="https://github.com/user-attachments/assets/7b9802a4-e453-4086-90fb-a19e1aec7e20"
/> |

Fixes https://github.com/vercel/next.js/issues/85379
Closes: https://github.com/vercel/next.js/pull/84929
Closes: https://github.com/vercel/next.js/pull/85653
parent 7ed2b906
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
"scripts": { "scripts": {
"dev": "pnpm build", "dev": "pnpm build",
"build": "swc -d dist src && pnpm types", "build": "swc -d dist src && pnpm types",
"types": "tsc --skipLibCheck --declaration --emitDeclarationOnly --esModuleInterop --outDir dist", "types": "tsc --skipLibCheck --declaration --emitDeclarationOnly --esModuleInterop --declarationDir dist --rootDir src",
"prepublishOnly": "cd ../../ && turbo run build" "prepublishOnly": "cd ../../ && turbo run build"
}, },
"exports": { "exports": {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment