From 0d56455b6f3026b994f2ea8c840caaf93097837d Mon Sep 17 00:00:00 2001 From: Jacek Radko Date: Fri, 4 Oct 2024 11:13:41 -0500 Subject: [PATCH] fix(nextjs): do not build test file declarations (#4286) Co-authored-by: Bryce Kalow --- .changeset/young-llamas-prove.md | 2 ++ packages/nextjs/tsconfig.declarations.json | 13 +++++++------ 2 files changed, 9 insertions(+), 6 deletions(-) create mode 100644 .changeset/young-llamas-prove.md diff --git a/.changeset/young-llamas-prove.md b/.changeset/young-llamas-prove.md new file mode 100644 index 0000000000..a845151cc8 --- /dev/null +++ b/.changeset/young-llamas-prove.md @@ -0,0 +1,2 @@ +--- +--- diff --git a/packages/nextjs/tsconfig.declarations.json b/packages/nextjs/tsconfig.declarations.json index c42a5efd18..bf106394d7 100644 --- a/packages/nextjs/tsconfig.declarations.json +++ b/packages/nextjs/tsconfig.declarations.json @@ -1,12 +1,13 @@ { "extends": "./tsconfig.json", "compilerOptions": { - "skipLibCheck": true, - "noEmit": false, "declaration": true, - "emitDeclarationOnly": true, + "declarationDir": "./dist/types", "declarationMap": true, - "sourceMap": false, - "declarationDir": "./dist/types" - } + "emitDeclarationOnly": true, + "noEmit": false, + "skipLibCheck": true, + "sourceMap": false + }, + "exclude": ["**/__tests__/**/*"] }