Skip to content

Commit

Permalink
fixups
Browse files Browse the repository at this point in the history
  • Loading branch information
emily-shen committed Dec 17, 2024
1 parent 922e8be commit 0786502
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions packages/wrangler/src/config/config-helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ export function resolveWranglerConfigPath({
}

const leafPath = script !== undefined ? path.dirname(script) : process.cwd();
console.dir(leafPath);
return findWranglerConfig(leafPath);
}

Expand All @@ -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 }) ??
Expand Down
1 change: 0 additions & 1 deletion packages/wrangler/src/config/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
3 changes: 2 additions & 1 deletion packages/wrangler/src/config/validation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -32,7 +33,7 @@ import {
validateRequiredProperty,
validateTypedArray,
} from "./validation-helpers";
import { configFileName, formatConfigSnippet, friendlyBindingNames } from ".";
import { configFileName, formatConfigSnippet } from ".";
import type {
CreateApplicationRequest,
UserDeploymentConfiguration,
Expand Down

0 comments on commit 0786502

Please sign in to comment.