From 400e784f4d1f91c4842b7bd4836c3d26fd003530 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julian=20=C4=86wirko?= Date: Sun, 11 Jun 2023 12:25:18 +0200 Subject: [PATCH] Update tsconfig.json The package can't be used appropriately with the current package.json paths to the lib directory and tsconfig.json file setup. The solution would be the changes in tsconfig.json: 1. remove tests from the `lib` output; we don't need them, do we? 2. This will flatten the lib directory to match paths defined in the package.json As additional improvements (not added here): 1. there is an npm audit error that can be fixed by running `npm audit fix`. The package-lock.json will need to be pushed then. I wanted to avoid touching the package-lock here. --- tsconfig.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tsconfig.json b/tsconfig.json index 6dedf8e..4071694 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -4,8 +4,8 @@ "module": "commonjs", "declaration": true, "outDir": "./lib", - "strict": true + "strict": true, + "rootDir": "./src" }, - "include": ["src", "test"], - "exclude": ["node_modules", "**/__tests__/*"] + "exclude": ["node_modules", "test"] }