Skip to content

Commit

Permalink
Reorder imports to dev to for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
petebacondarwin committed Jan 18, 2022
1 parent eccede9 commit b99fc3f
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 20 deletions.
2 changes: 1 addition & 1 deletion .changeset/clever-humans-happen.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
"wrangler": patch
---

Refactor dev and publish commands to pass strict-null checks
refactor: update dev and publish commands to pass strict-null checks
40 changes: 21 additions & 19 deletions packages/wrangler/src/dev.tsx
Original file line number Diff line number Diff line change
@@ -1,30 +1,32 @@
import esbuild from "esbuild";
import { readFile } from "fs/promises";
import { existsSync } from "fs";
import type { DirectoryResult } from "tmp-promise";
import tmp from "tmp-promise";
import type { CfPreviewToken } from "./api/preview";
import assert from "node:assert";
import { spawn } from "node:child_process";
import { readFile } from "node:fs/promises";
import { existsSync } from "node:fs";
import path from "node:path";
import { Box, Text, useApp, useInput } from "ink";
import React, { useState, useEffect, useRef } from "react";
import path from "path";
import { watch } from "chokidar";
import clipboardy from "clipboardy";
import commandExists from "command-exists";
import { execa } from "execa";
import fetch from "node-fetch";
import open from "open";
import useInspector from "./inspect";
import React, { useState, useEffect, useRef } from "react";
import { withErrorBoundary, useErrorHandler } from "react-error-boundary";
import onExit from "signal-exit";
import tmp from "tmp-promise";
import type { DirectoryResult } from "tmp-promise";

import type { CfPreviewToken } from "./api/preview";
import type { CfModule } from "./api/worker";
import { createWorker } from "./api/worker";
import type { CfWorkerInit } from "./api/worker";
import { spawn } from "child_process";
import onExit from "signal-exit";
import { syncAssets } from "./sites";
import clipboardy from "clipboardy";
import commandExists from "command-exists";
import assert from "assert";
import { getAPIToken } from "./user";
import fetch from "node-fetch";

import useInspector from "./inspect";
import makeModuleCollector from "./module-collection";
import { withErrorBoundary, useErrorHandler } from "react-error-boundary";
import { usePreviewServer } from "./proxy";
import { execa } from "execa";
import { watch } from "chokidar";
import { syncAssets } from "./sites";
import { getAPIToken } from "./user";

type CfScriptFormat = undefined | "modules" | "service-worker";

Expand Down

0 comments on commit b99fc3f

Please sign in to comment.