From eaffbae4496d052483c2a77448f9daa4a58445d9 Mon Sep 17 00:00:00 2001 From: dapplion Date: Wed, 4 Nov 2020 18:00:50 +0000 Subject: [PATCH] Include tests in ts-config --- package.json | 2 +- tsconfig.build.json | 5 +++++ tsconfig.json | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 tsconfig.build.json diff --git a/package.json b/package.json index a4e48e9..65ba239 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,7 @@ "build": "yarn build-lib && yarn build-types", "build:release": "yarn clean && yarn build && yarn build-web", "build-lib": "babel src -x .ts -d lib", - "build-types": "tsc --declaration --incremental --outDir lib --emitDeclarationOnly", + "build-types": "tsc --declaration --incremental --outDir lib --project tsconfig.build.json --emitDeclarationOnly", "build-web": "webpack --mode production --entry ./lib/web.js --output ./dist/bls.min.js", "check-types": "tsc --noEmit", "lint": "eslint --color --ext .ts src/ test/", diff --git a/tsconfig.build.json b/tsconfig.build.json new file mode 100644 index 0000000..7e92fee --- /dev/null +++ b/tsconfig.build.json @@ -0,0 +1,5 @@ +{ + "extends": "./tsconfig", + "include": ["src"], + "exclude": ["test"], +} diff --git a/tsconfig.json b/tsconfig.json index db678b5..a083043 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,5 +1,5 @@ { - "include": ["src"], + "include": ["src", "test"], "compilerOptions": { "target": "esnext", "module": "commonjs",