From 35af2db0ca9452b28a82cc2a984bdeb536f27e51 Mon Sep 17 00:00:00 2001 From: Will Byrne Date: Tue, 1 Aug 2023 15:23:34 +0100 Subject: [PATCH 1/2] exclude tests and fixtures so they are not build into dist --- tsconfig.json | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tsconfig.json b/tsconfig.json index 231c8eb..fbaeffc 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -3,6 +3,10 @@ "compilerOptions": { "lib": ["es2021", "DOM"], "outDir": "./dist/", - "declaration": true, + "declaration": true }, + "exclude": [ + "src/**/*.test.ts", + "src/test-fixtures" + ] } From 3741ff6273852e6eb73518af8bb80c30192d026f Mon Sep 17 00:00:00 2001 From: Will Byrne Date: Tue, 1 Aug 2023 15:25:46 +0100 Subject: [PATCH 2/2] lint fix --- .eslintrc.cjs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.eslintrc.cjs b/.eslintrc.cjs index 6b9a23f..f65ecbd 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -9,5 +9,9 @@ module.exports = { rules: { "import/prefer-default-export": 0, "max-len": ["error", { "code": 240 }], - } + }, + ignorePatterns: [ + "src/**/*.test.ts", + "src/test-fixtures", + ], };