Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion attw.json
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,6 @@
"dhtmlxgantt",
"dhtmlxscheduler",
"dialogify-browser",
"diff",
"digital-goods-browser",
"doccookies",
"dock-spawn",
Expand Down
4 changes: 4 additions & 0 deletions types/diff/diff-tests.mts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// @ts-expect-error
import ThereIsNoDefaultExport, { Diff } from "diff";

new Diff();
1 change: 1 addition & 0 deletions types/diff/index.d.mts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from "./index.js";
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

index.mjs is actually a duplicated bundle, but re-exporting instead of duplicating types is the better tradeoff for now

9 changes: 8 additions & 1 deletion types/diff/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,12 @@
"name": "Piotr Błażejewicz",
"githubUsername": "peterblazejewicz"
}
]
],
"exports": {
".": {
"import": "./index.d.mts",
"require": "./index.d.ts"
},
"./package.json": "./package.json"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

diff also exposes "./*", but I didn’t handle that for now since the types have never exposed individual files.

}
}
3 changes: 2 additions & 1 deletion types/diff/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
},
"files": [
"index.d.ts",
"diff-tests.ts"
"diff-tests.ts",
"diff-tests.mts"
]
}