From 8ec89c9d0c324ad710bc3dd8f34884f8aef278ad Mon Sep 17 00:00:00 2001 From: Ross Reicks <80704623+rossreicks@users.noreply.github.com> Date: Tue, 8 Aug 2023 15:04:34 -0500 Subject: [PATCH] chore: add build specific tsconfig (#282) * chore: add build specific tsconfig * chore: update types reference --- package.json | 4 ++-- tsconfig.build.json | 7 +++++++ 2 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 tsconfig.build.json diff --git a/package.json b/package.json index 6068aa9..155d757 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "author": "@TractorZoom", "license": "MIT", "scripts": { - "build": "rimraf lib && tsc --allowJs false && cp package.json lib", + "build": "rimraf lib && tsc --project tsconfig.build.json && cp package.json lib", "commit": "git-cz", "test": "jest", "prettier:all": "prettier --write './**/*.*'", @@ -67,5 +67,5 @@ "serverless-mysql", "sql" ], - "types": "./lib/index.d.ts" + "types": "index.d.ts" } diff --git a/tsconfig.build.json b/tsconfig.build.json new file mode 100644 index 0000000..e876306 --- /dev/null +++ b/tsconfig.build.json @@ -0,0 +1,7 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "allowJs": false + }, + "exclude": ["__tests__/**/*.spec.ts"] +}