Skip to content

Commit 94c67e8

Browse files
authored
fix: types from @cloudflare/workers-utils not being exported correctly from Wrangler (#11523)
* Fix Wrangler type exports * Add changeset * Add comment
1 parent d9d3e57 commit 94c67e8

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

‎.changeset/slick-tables-trade.md‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"wrangler": patch
3+
---
4+
5+
fix: types from @cloudflare/workers-utils not being exported correctly from Wrangler

‎packages/wrangler/src/api/integrations/platform/index.ts‎

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,16 @@ import { dedent } from "../../../utils/dedent";
1919
import { maybeStartOrUpdateRemoteProxySession } from "../../remoteBindings";
2020
import { CacheStorage } from "./caches";
2121
import { ExecutionContext } from "./executionContext";
22-
import type { AssetsOptions } from "../../../assets";
23-
import type { RemoteProxySession } from "../../remoteBindings";
24-
import type { IncomingRequestCfProperties } from "@cloudflare/workers-types/experimental";
22+
// TODO: import from `@cloudflare/workers-utils` after migrating to `tsdown`
23+
// This is a temporary fix to ensure that the types are included in the build output
2524
import type {
2625
Config,
2726
RawConfig,
2827
RawEnvironment,
29-
} from "@cloudflare/workers-utils";
28+
} from "../../../../../workers-utils/src";
29+
import type { AssetsOptions } from "../../../assets";
30+
import type { RemoteProxySession } from "../../remoteBindings";
31+
import type { IncomingRequestCfProperties } from "@cloudflare/workers-types/experimental";
3032
import type {
3133
MiniflareOptions,
3234
ModuleRule,

0 commit comments

Comments
 (0)