From 50d47fcc9a2e9b95635f2cf2747f9e920c71dd33 Mon Sep 17 00:00:00 2001 From: Mykola Mokhnach Date: Thu, 23 Oct 2025 11:39:08 +0200 Subject: [PATCH] fix: Update buidling logic --- package.json | 4 ++-- tsconfig.json | 22 ++++++++-------------- 2 files changed, 10 insertions(+), 16 deletions(-) diff --git a/package.json b/package.json index e9e68fd..0bb9256 100644 --- a/package.json +++ b/package.json @@ -22,8 +22,8 @@ "node": "^20.19.0 || ^22.12.0 || >=24.0.0", "npm": ">=10" }, - "main": "./build/index.js", - "types": "./build/index.d.ts", + "main": "./build/lib/index.js", + "types": "./build/lib/index.d.ts", "bin": {}, "directories": { "lib": "./lib" diff --git a/tsconfig.json b/tsconfig.json index 22e5fb4..c578b3c 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,18 +1,12 @@ { - "extends": "@appium/tsconfig/tsconfig", + "$schema": "https://json.schemastore.org/tsconfig", + "extends": "@appium/tsconfig/tsconfig.json", "compilerOptions": { - "outDir": "./build", - "rootDir": "./lib", - "declaration": true, - "declarationMap": true, - "sourceMap": true + "outDir": "build", + "checkJs": true, + "esModuleInterop": true, + "types": ["node"], + "strict": true }, - "include": [ - "lib/**/*" - ], - "exclude": [ - "node_modules", - "build", - "test" - ] + "include": ["lib"] }