From 46d0c94ed113a5f9f2b2f2e099111d5aad496e43 Mon Sep 17 00:00:00 2001 From: 0xNotMe Date: Mon, 14 Oct 2024 16:20:47 +1100 Subject: [PATCH] fix: ignore test files from release --- typescript/.npmignore | 8 +++++++- typescript/tsconfig.json | 4 ++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/typescript/.npmignore b/typescript/.npmignore index 8a8333c..7504898 100644 --- a/typescript/.npmignore +++ b/typescript/.npmignore @@ -1,3 +1,9 @@ src/ + tsconfig.json -.gitignore \ No newline at end of file +.gitignore + +# Ignore all test files +**/__tests__/ +*.test.ts +*.spec.ts diff --git a/typescript/tsconfig.json b/typescript/tsconfig.json index baccc62..451fd5d 100644 --- a/typescript/tsconfig.json +++ b/typescript/tsconfig.json @@ -15,6 +15,6 @@ "*": ["../../configs/*"] } }, - "include": ["src/**/*"], - "exclude": ["node_modules", "dist", "test/**/*"] + "include": ["src/**/*.ts"], + "exclude": ["**/*.test.ts", "**/*.spec.ts", "**/__tests__/**"] }