From 57d98337b82ffa8a3d127ea7d13497c510367b52 Mon Sep 17 00:00:00 2001 From: Florian Imdahl Date: Sat, 28 Mar 2026 21:39:45 +0100 Subject: [PATCH 1/2] fix(ntpclient): add types condition to exports for pre-build TypeScript resolution Without a built dist/, TypeScript could not find type declarations when resolving the ntpclient module. Adding a types condition in the exports map pointing to src/index.ts allows TypeScript to resolve types directly from source without requiring a prior build step. --- packages/ntpclient/package.json | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/ntpclient/package.json b/packages/ntpclient/package.json index c9c3060f..189201f3 100644 --- a/packages/ntpclient/package.json +++ b/packages/ntpclient/package.json @@ -13,7 +13,12 @@ "engines": { "node": ">= 21" }, - "exports": "./dist/index.js", + "exports": { + ".": { + "types": "./src/index.ts", + "default": "./dist/index.js" + } + }, "files": [ "dist" ], From 02040f8a94211a51e1a82abbf99c2af9e00ac0b1 Mon Sep 17 00:00:00 2001 From: Florian Imdahl Date: Sat, 28 Mar 2026 21:39:50 +0100 Subject: [PATCH 2/2] fix(my-timezone): exclude vitest.config.ts from TypeScript compilation --- packages/my-timezone/tsconfig.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/my-timezone/tsconfig.json b/packages/my-timezone/tsconfig.json index 3a237d20..40fbd071 100644 --- a/packages/my-timezone/tsconfig.json +++ b/packages/my-timezone/tsconfig.json @@ -7,6 +7,6 @@ "rootDir": "src", "target": "ES2018" }, - "exclude": ["dist", "node_modules"], + "exclude": ["dist", "node_modules", "vitest.config.ts"], "extends": "../../tsconfig.json" }