From 2b6ec09d99771cc08e3f77ff9e8851b184b4162a Mon Sep 17 00:00:00 2001 From: Carmen Popoviciu Date: Tue, 30 Jul 2024 15:05:08 +0200 Subject: [PATCH] fixes --- packages/wrangler/src/__tests__/deploy.test.ts | 2 +- packages/wrangler/src/dev/local.tsx | 2 +- packages/wrangler/src/dev/miniflare.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/wrangler/src/__tests__/deploy.test.ts b/packages/wrangler/src/__tests__/deploy.test.ts index f67614e814ad..c88d675b66c2 100644 --- a/packages/wrangler/src/__tests__/deploy.test.ts +++ b/packages/wrangler/src/__tests__/deploy.test.ts @@ -4363,7 +4363,7 @@ addEventListener('fetch', event => {});` }); writeWorkerSource(); mockUploadWorkerRequest({ - expectedMainModule: "no-op-worker.js", + expectedMainModule: "no-op-assets-worker.js", }); mockSubDomainRequest(); await runWrangler("deploy"); diff --git a/packages/wrangler/src/dev/local.tsx b/packages/wrangler/src/dev/local.tsx index 1c3e38a9d594..66e428bc32bf 100644 --- a/packages/wrangler/src/dev/local.tsx +++ b/packages/wrangler/src/dev/local.tsx @@ -2,12 +2,12 @@ import assert from "node:assert"; import chalk from "chalk"; import { useEffect, useRef } from "react"; import onExit from "signal-exit"; -import { ExperimentalAssets } from "../config/environment"; import { registerWorker } from "../dev-registry"; import { logger } from "../logger"; import { DEFAULT_WORKER_NAME, MiniflareServer } from "./miniflare"; import type { ProxyData } from "../api"; import type { Config } from "../config"; +import type { ExperimentalAssets } from "../config/environment"; import type { CfDurableObject, CfScriptFormat, diff --git a/packages/wrangler/src/dev/miniflare.ts b/packages/wrangler/src/dev/miniflare.ts index 6572f46f5352..8db7e3c1b8b6 100644 --- a/packages/wrangler/src/dev/miniflare.ts +++ b/packages/wrangler/src/dev/miniflare.ts @@ -16,7 +16,6 @@ import { EXTERNAL_AI_WORKER_NAME, EXTERNAL_AI_WORKER_SCRIPT, } from "../ai/fetcher"; -import { ExperimentalAssets } from "../config/environment"; import { ModuleTypeToRuleType } from "../deployment-bundle/module-collection"; import { withSourceURLs } from "../deployment-bundle/source-url"; import { UserError } from "../errors"; @@ -25,6 +24,7 @@ import { getSourceMappedString } from "../sourcemap"; import { updateCheck } from "../update-check"; import type { ServiceFetch } from "../api"; import type { Config } from "../config"; +import type { ExperimentalAssets } from "../config/environment"; import type { CfD1Database, CfDurableObject,