Skip to content

Commit 71578e7

Browse files
committed
fix: config for generate types entry file
1 parent 1d0769c commit 71578e7

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

code/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@wolfpackthatcodes/http-client",
33
"description": "An expressive, minimal wrapper around the Fetch() API allowing you to quickly make HTTP requests.",
4-
"version": "0.1.1",
4+
"version": "0.1.2",
55
"license": "MIT",
66
"homepage": "https://github.com/wolfpackthatcodes/typescript-http-client",
77
"repository": {
@@ -23,6 +23,7 @@
2323
"type": "module",
2424
"main": "./dist/index.umd.cjs",
2525
"module": "./dist/index.js",
26+
"types": "./dist/index.d.ts",
2627
"exports": {
2728
".": {
2829
"import": "./dist/index.js",

code/vite.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export default defineConfig({
2020
'@': path.resolve(__dirname, './src'),
2121
},
2222
},
23-
plugins: [dts()],
23+
plugins: [dts({ insertTypesEntry: true })],
2424
test: {
2525
globals: true,
2626
},

0 commit comments

Comments
 (0)