Skip to content

Commit b653e79

Browse files
committed
refactor: update entry point and file structure in package.json
1 parent 9436a91 commit b653e79

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

index.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
/**
22
* fetch-proxy - A fetch-based HTTP proxy library optimized for Bun runtime
33
*
4-
* Main entry point for the library
4+
* Development entry point - re-exports from src for examples and testing
5+
* Production builds should use the transpiled lib/ version
56
*/
67

78
export { default, FetchProxy } from "./src/index.ts"
@@ -11,5 +12,9 @@ export type {
1112
ProxyRequestOptions,
1213
BeforeRequestHook,
1314
AfterResponseHook,
15+
BeforeCircuitBreakerHook,
16+
AfterCircuitBreakerHook,
1417
ErrorHook,
18+
CircuitState,
19+
CircuitBreakerResult,
1520
} from "./src/index.ts"

package.json

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,12 @@
22
"name": "fetch-proxy",
33
"version": "1.0.0",
44
"description": "A fetch-based HTTP proxy library optimized for Bun runtime with hooks, circuit breakers and timeouts",
5-
"main": "index.ts",
6-
"module": "index.ts",
7-
"types": "index.ts",
5+
"main": "lib/index.js",
6+
"module": "lib/index.js",
7+
"types": "lib/index.d.ts",
88
"type": "module",
99
"files": [
10-
"src/**/*",
11-
"index.ts",
10+
"lib/**/*",
1211
"README.md",
1312
"LICENSE"
1413
],

0 commit comments

Comments
 (0)