Skip to content

Commit 2168123

Browse files
committed
📦 Do not use ugly generated DTS
1 parent edf6e5f commit 2168123

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

‎packages/inference/package.json‎

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,18 +28,16 @@
2828
"src"
2929
],
3030
"source": "src/index.ts",
31-
"types": "dist/index.d.ts",
31+
"types": "src/index.ts",
3232
"main": "./dist/index.js",
3333
"module": "./dist/index.mjs",
3434
"exports": {
35-
".": {
36-
"require": "./dist/index.js",
37-
"import": "./dist/index.mjs",
38-
"types": "./dist/index.d.ts"
39-
}
35+
"types": "./src/index.ts",
36+
"require": "./dist/index.js",
37+
"import": "./dist/index.mjs"
4038
},
4139
"scripts": {
42-
"build": "tsup src/index.ts --format cjs,esm --clean --dts",
40+
"build": "tsup src/index.ts --format cjs,esm --clean",
4341
"lint": "eslint --quiet --fix --ext .cjs,.ts .",
4442
"lint:check": "eslint --ext .cjs,.ts .",
4543
"format": "prettier --write .",

0 commit comments

Comments
 (0)