From 597672a135634e8cc114b7bcbb8bd3bfc7bbc8ba Mon Sep 17 00:00:00 2001 From: Pascal Ulor Date: Mon, 12 May 2025 11:14:57 +0100 Subject: [PATCH 1/2] TK-09 | chore:update tsconfig to emmit .d.ts files for types --- .eslintignore | 5 +++++ commitlint.config.js | 3 +++ package.json | 2 +- tsconfig.json | 5 +++++ 4 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 .eslintignore diff --git a/.eslintignore b/.eslintignore new file mode 100644 index 00000000..5e401741 --- /dev/null +++ b/.eslintignore @@ -0,0 +1,5 @@ +dist +node_modules +built +src/tests/**/*.ts +**/*.spec.ts \ No newline at end of file diff --git a/commitlint.config.js b/commitlint.config.js index ab6352b0..a1e2929f 100644 --- a/commitlint.config.js +++ b/commitlint.config.js @@ -15,3 +15,6 @@ module.exports = { }, }, }; + +// Sample commit format +// 'TK-08 | chore:update http constants' diff --git a/package.json b/package.json index 488a09ec..b81a3524 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "request-response-handler", - "version": "1.0.9", + "version": "1.1.0", "description": "Handle HTTP request responses", "main": "dist/src/index.js", "types": "./dist/index.d.ts", diff --git a/tsconfig.json b/tsconfig.json index 75f00cf1..f70fd67d 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -16,6 +16,11 @@ ], "resolveJsonModule": true, "sourceMap": true, + // Generate d.ts files + "declaration": true, + // This compiler run should + // only output d.ts files + "emitDeclarationOnly": true, "outDir": "dist", "sourceRoot": "/", "inlineSources": true, From 7915bb9618588339b39e2880b6a8cf72614d5177 Mon Sep 17 00:00:00 2001 From: Pascal Ulor Date: Mon, 12 May 2025 11:31:54 +0100 Subject: [PATCH 2/2] TK-10 | chore:update tsconfig to emmit .d.ts and js files for types --- tsconfig.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tsconfig.json b/tsconfig.json index f70fd67d..d7df2c37 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -18,9 +18,9 @@ "sourceMap": true, // Generate d.ts files "declaration": true, - // This compiler run should - // only output d.ts files - "emitDeclarationOnly": true, + // // This compiler run should + // // only output d.ts files + // "emitDeclarationOnly": true, "outDir": "dist", "sourceRoot": "/", "inlineSources": true,