From 465a1d3bd02daee91385ecd09a0a8d020c643173 Mon Sep 17 00:00:00 2001 From: Aran Leite Date: Fri, 29 Dec 2023 13:50:33 -0300 Subject: [PATCH 1/2] Remove "include" and "exclude" from Next.js config closes #207 --- bases/next.json | 6 ++---- readme-extras/next.md | 5 +++++ 2 files changed, 7 insertions(+), 4 deletions(-) create mode 100644 readme-extras/next.md diff --git a/bases/next.json b/bases/next.json index 2baab07..2a88799 100644 --- a/bases/next.json +++ b/bases/next.json @@ -1,7 +1,7 @@ { "$schema": "https://json.schemastore.org/tsconfig", "display": "Next.js", - "_version": "2.0.0", + "_version": "2.0.1", "compilerOptions": { "lib": ["dom", "dom.iterable", "esnext"], @@ -22,7 +22,5 @@ "name": "next" } ] - }, - "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"], - "exclude": ["node_modules"] + } } diff --git a/readme-extras/next.md b/readme-extras/next.md new file mode 100644 index 0000000..0b7faf5 --- /dev/null +++ b/readme-extras/next.md @@ -0,0 +1,5 @@ +> **NOTE**: You also need to add the following lines, since they are resolved relative to their location: +> ``` +> "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"], +> "exclude": ["node_modules"] +> ``` From f962172180b8b0a0688debbbe2a1f202b81ed42a Mon Sep 17 00:00:00 2001 From: Orta Therox Date: Thu, 31 Oct 2024 14:32:02 +0000 Subject: [PATCH 2/2] Update next.json --- bases/next.json | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/bases/next.json b/bases/next.json index 2a88799..1347647 100644 --- a/bases/next.json +++ b/bases/next.json @@ -17,10 +17,6 @@ "isolatedModules": true, "jsx": "preserve", "incremental": true, - "plugins": [ - { - "name": "next" - } - ] + "plugins": [{ "name": "next" }] } }