From 078650243b22aaa20a331c81d488e69b83fe6ad0 Mon Sep 17 00:00:00 2001 From: emily-shen <69125074+emily-shen@users.noreply.github.com> Date: Fri, 13 Dec 2024 12:40:43 +0000 Subject: [PATCH] fixups --- packages/wrangler/src/config/config-helpers.ts | 2 -- packages/wrangler/src/config/index.ts | 1 - packages/wrangler/src/config/validation.ts | 3 ++- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/wrangler/src/config/config-helpers.ts b/packages/wrangler/src/config/config-helpers.ts index d7b4313ea47b..a02b6a47bf26 100644 --- a/packages/wrangler/src/config/config-helpers.ts +++ b/packages/wrangler/src/config/config-helpers.ts @@ -17,7 +17,6 @@ export function resolveWranglerConfigPath({ } const leafPath = script !== undefined ? path.dirname(script) : process.cwd(); - console.dir(leafPath); return findWranglerConfig(leafPath); } @@ -28,7 +27,6 @@ export function resolveWranglerConfigPath({ export function findWranglerConfig( referencePath: string = process.cwd() ): string | undefined { - console.dir(referencePath); return ( findUpSync(`wrangler.json`, { cwd: referencePath }) ?? findUpSync(`wrangler.jsonc`, { cwd: referencePath }) ?? diff --git a/packages/wrangler/src/config/index.ts b/packages/wrangler/src/config/index.ts index 380ffd419d1b..b1b73f933ad6 100644 --- a/packages/wrangler/src/config/index.ts +++ b/packages/wrangler/src/config/index.ts @@ -157,7 +157,6 @@ export const experimental_readRawConfig = ( ): { rawConfig: RawConfig; configPath: string | undefined } => { // Load the configuration from disk if available const configPath = resolveWranglerConfigPath(args); - console.dir(configPath); let rawConfig: RawConfig = {}; if (configPath?.endsWith("toml")) { rawConfig = parseTOML(readFileSync(configPath), configPath); diff --git a/packages/wrangler/src/config/validation.ts b/packages/wrangler/src/config/validation.ts index b4f2f8343b1b..a36826ed1cc1 100644 --- a/packages/wrangler/src/config/validation.ts +++ b/packages/wrangler/src/config/validation.ts @@ -4,6 +4,7 @@ import TOML from "@iarna/toml"; import { dedent } from "ts-dedent"; import { UserError } from "../errors"; import { getFlag } from "../experimental-flags"; +import { friendlyBindingNames } from "../utils/print-bindings"; import { Diagnostics } from "./diagnostics"; import { all, @@ -32,7 +33,7 @@ import { validateRequiredProperty, validateTypedArray, } from "./validation-helpers"; -import { configFileName, formatConfigSnippet, friendlyBindingNames } from "."; +import { configFileName, formatConfigSnippet } from "."; import type { CreateApplicationRequest, UserDeploymentConfiguration,