From 1d24b18e20b7da511daf883cae9e3b83e4ac5523 Mon Sep 17 00:00:00 2001 From: Jacob Alford Date: Fri, 6 Sep 2024 10:50:42 -0600 Subject: [PATCH] fix: prevent types field from being overidden --- src/BuildService.ts | 1 + tests/test-projects/jsx/package.json | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/src/BuildService.ts b/src/BuildService.ts index 7a12951..d52e28e 100644 --- a/src/BuildService.ts +++ b/src/BuildService.ts @@ -159,6 +159,7 @@ export const BuildServiceLive: RTE.ReaderTaskEither< main: _, module: __, exports: ___, + types: ____, ...rest }, }) => diff --git a/tests/test-projects/jsx/package.json b/tests/test-projects/jsx/package.json index deaf17d..b68be45 100644 --- a/tests/test-projects/jsx/package.json +++ b/tests/test-projects/jsx/package.json @@ -1,6 +1,10 @@ { "name": "jsx", "version": "0.0.1", + "types": "./this/folder/doesn-t/exist.d.ts", + "main": "./this/folder/also/doesn-t/exit/index.js", + "module": "./this/folder/exists/jk.mjs", + "exports": "./just-wrong.cjs", "devDependencies": { "@fp-tx/build-tools": "file:../../../dist", "@types/react": "^18.3.5",