Skip to content

kh4f/next-dont

Repository files navigation

logo
npm version  bundle size  license

A tiny patch preventing Next.js from messing with your tsconfig

🕹️ Usage

bunx next-dont

This patches your local node_modules/next to prevent Next.js from making unnecessary changes to the tsconfig.json.

For convenience, add next-dont to the prepare script in package.json so the patch is applied automatically after every dependency install:

{
  "scripts": {
    "prepare": "bunx next-dont"
  }
}