From faa9155a9399cb7ef51dc2248b072e82e6f6ca52 Mon Sep 17 00:00:00 2001 From: Blake Vandercar Date: Mon, 13 May 2024 16:23:10 -0600 Subject: [PATCH] feat: no include tests in build --- package.json | 2 +- tsconfig.build.json | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 tsconfig.build.json diff --git a/package.json b/package.json index 7aa3578..45765bf 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "types": "lib/spoof.d.ts", "scripts": { "prepare": "husky && yarn lint && yarn build", - "build": "tsc", + "build": "tsc -p tsconfig.build.json", "lint": "yarn ts-standard --fix", "test": "jest" }, diff --git a/tsconfig.build.json b/tsconfig.build.json new file mode 100644 index 0000000..32eb805 --- /dev/null +++ b/tsconfig.build.json @@ -0,0 +1,4 @@ +{ + "extends": "./tsconfig", + "exclude": ["node_modules", "**/__test__/**/*"] + } \ No newline at end of file