Skip to content

Commit 1d0604b

Browse files
committed
fix package.json for import in projects
1 parent c84819a commit 1d0604b

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

package.json

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,8 @@
1717
"README.md",
1818
"LICENSE"
1919
],
20-
"type": "module",
21-
"exports": {
22-
"types": "./dist/index.d.ts",
23-
"default": "./dist/index.js"
24-
},
20+
"types": "./dist/index.d.ts",
21+
"main": "./dist/index.js",
2522
"scripts": {
2623
"ts-check": "tsc --noEmit --incremental",
2724
"lint": "eslint src --fix",

src/ImmutableBatchLoaderItemsStore.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ implements IBatchLoaderItemsStore<ID, R> {
6969
},
7070
] as const
7171
})
72-
.filter(Boolean) as [ID, IBatchLoaderItem<R>][]
72+
.filter(Boolean)
7373

7474
this.setState({
7575
...state,

tsconfig.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@
33
"node_modules/@total-typescript/ts-reset/dist/recommended.d.ts",
44
],
55
"include": [
6-
"src/**/*.ts"
6+
"src/**/*.ts",
7+
],
8+
"exclude": [
9+
"dist/**/*",
710
],
811
"compilerOptions": {
912
/* Visit https://aka.ms/tsconfig to read more about this file */

0 commit comments

Comments
 (0)