From aa4f0fe566f112817b048b781f76566bdb0efa4d Mon Sep 17 00:00:00 2001 From: Filip Masar Date: Thu, 17 Oct 2024 13:00:16 +0200 Subject: [PATCH 1/2] generate types to dist/types --- package.json | 2 +- tsconfig.json | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 9b01ef14e..f0d82991f 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ "require": "./dist/lib.js", "default": "./dist/lib.modern.js" }, - "types": "./dist/src/index.d.ts", + "types": "./dist/types/index.d.ts", "scripts": { "start": "npm run clean && npm run build:metadata && tsc -w", "build": "npm run clean && npm run build:metadata && microbundle build --format modern,esm,cjs,umd --compress --tsconfig tsconfig.json", diff --git a/tsconfig.json b/tsconfig.json index b113c025a..ad48dc015 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -11,9 +11,9 @@ "removeComments": false, "experimentalDecorators": true, "preserveConstEnums": true, - "outDir": "./dist/", + "outDir": "./dist", "sourceMap": true, - "declarationDir": "./dist/" }, - "include": ["src/**/*", "test/**/*"] + "include": ["src/**/*"], + "exclude": ["node_modules", "test"] } From bae18749bf96d8cc34592aa6dd271b7c1fd6dbfb Mon Sep 17 00:00:00 2001 From: Filip Masar Date: Thu, 17 Oct 2024 22:36:43 +0200 Subject: [PATCH 2/2] fix tests tsconfig path in eslint --- .eslintrc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.eslintrc b/.eslintrc index befef9708..f93683740 100644 --- a/.eslintrc +++ b/.eslintrc @@ -7,8 +7,7 @@ }, "project": [ "./tsconfig.json", - "./test/unit/tsconfig.json", - "./test/integration/tsconfig.json" + "./test/tsconfig.json", ] }, "extends": ["oceanprotocol", "plugin:prettier/recommended"],