From 2012653be91ebdddb5e9bdbda1916dab29dbefa9 Mon Sep 17 00:00:00 2001 From: Ni55aN Date: Thu, 29 Aug 2024 22:14:37 +0300 Subject: [PATCH] fix: build --- package.json | 2 +- tsconfig.build.json | 8 ++++++++ tsconfig.json | 4 +--- 3 files changed, 10 insertions(+), 4 deletions(-) create mode 100644 tsconfig.build.json diff --git a/package.json b/package.json index 2ce91c9..8245bbd 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ "rete": "./bin/index.js" }, "scripts": { - "build": "tsc", + "build": "tsc -p tsconfig.build.json", "dev": "tsc --watch", "lint": "eslint src", "test": "jest --preset ts-jest --coverage --testEnvironment node --collectCoverageFrom 'src/**/*' --testMatch '**/*.test.ts'" diff --git a/tsconfig.build.json b/tsconfig.build.json new file mode 100644 index 0000000..e82dc4f --- /dev/null +++ b/tsconfig.build.json @@ -0,0 +1,8 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "outDir": "bin", + "declaration": true, + }, + "include": ["src"], +} diff --git a/tsconfig.json b/tsconfig.json index cc00ae0..9d1fa36 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,8 +1,6 @@ { "extends": "./configs/tsconfig.json", "compilerOptions": { - "outDir": "bin", - "declaration": true, "target": "ES2018", "moduleResolution": "Node", "module": "CommonJS", @@ -13,5 +11,5 @@ "noUnusedLocals": true, "skipLibCheck": true }, - "include": ["src"], + "include": ["src", "test"], }