Skip to content

Commit

Permalink
Merge pull request #15 from fp-tx/ja/fix-types-overriding
Browse files Browse the repository at this point in the history
fix: prevent types field from being overidden
  • Loading branch information
jacob-alford authored Sep 6, 2024
2 parents 2fb9214 + 1d24b18 commit 85ba681
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/BuildService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ export const BuildServiceLive: RTE.ReaderTaskEither<
main: _,
module: __,
exports: ___,
types: ____,
...rest
},
}) =>
Expand Down
4 changes: 4 additions & 0 deletions tests/test-projects/jsx/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit 85ba681

Please sign in to comment.