From 1b929dd8926a3af7454137108b945d226031d747 Mon Sep 17 00:00:00 2001 From: root Date: Sat, 16 May 2026 20:30:44 -0400 Subject: [PATCH] fix types package: point main/types to compiled dist output Node.js was loading src/index.ts at runtime (raw TypeScript) because main pointed to the source. At runtime it tried to resolve './damage' without an extension which fails in Node's ESM resolver. Pointing main to dist/index.js makes Node load the compiled CommonJS output produced by `tsc` during the build step. Co-Authored-By: Claude Sonnet 4.6 --- packages/types/package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/types/package.json b/packages/types/package.json index d656043..44295b0 100644 --- a/packages/types/package.json +++ b/packages/types/package.json @@ -2,8 +2,8 @@ "name": "@rentaldrivego/types", "version": "1.0.0", "private": true, - "main": "./src/index.ts", - "types": "./src/index.ts", + "main": "./dist/index.js", + "types": "./dist/index.d.ts", "scripts": { "build": "tsc", "type-check": "tsc --noEmit"