Skip to content

Commit

Permalink
enable type checking for next-core/js package again
Browse files Browse the repository at this point in the history
  • Loading branch information
ForsakenHarmony committed Jul 15, 2024
1 parent 9b29776 commit 370dc10
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions crates/next-core/js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"license": "UNLICENSED",
"private": true,
"scripts": {
"build": "pnpm check",
"check": "tsc --noEmit"
}
}
2 changes: 2 additions & 0 deletions crates/next-core/js/src/entry/page-loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ declare const PAGE_PATH: string
return require('PAGE')
},
])
// @ts-expect-error module.hot exists
if (module.hot) {
// @ts-expect-error module.hot exists
module.hot.dispose(function () {
window.__NEXT_P.push([PAGE_PATH])
})
Expand Down
1 change: 0 additions & 1 deletion crates/next-core/js/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
"@vercel/turbopack-next/internal/_error": ["node_modules/next/error"]
},
"resolveJsonModule": true,
"types": ["react/next"],
// emit
"noEmit": true,
"stripInternal": true
Expand Down

0 comments on commit 370dc10

Please sign in to comment.