Skip to content

Commit d4d3062

Browse files
authored
chore: defineCommand refactor for wrangler dev (#7249)
* use defineCommand * fix types * move into validate * reorder * capitalisation * never using the web editor again
1 parent b6cbfbd commit d4d3062

File tree

3 files changed

+337
-347
lines changed

3 files changed

+337
-347
lines changed

packages/wrangler/src/__tests__/dev.test.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -1379,7 +1379,7 @@ describe.sequential("wrangler dev", () => {
13791379
👂 Start a local server for developing your Worker
13801380
13811381
POSITIONALS
1382-
script The path to an entry point for your worker [string]
1382+
script The path to an entry point for your Worker [string]
13831383
13841384
GLOBAL FLAGS
13851385
-j, --experimental-json-config Experimental: support wrangler.json [boolean]
@@ -1389,10 +1389,10 @@ describe.sequential("wrangler dev", () => {
13891389
-v, --version Show version number [boolean]
13901390
13911391
OPTIONS
1392-
--name Name of the worker [string]
1392+
--name Name of the Worker [string]
13931393
--compatibility-date Date to use for compatibility checks [string]
13941394
--compatibility-flags, --compatibility-flag Flags to use for compatibility checks [array]
1395-
--latest Use the latest version of the worker runtime [boolean] [default: true]
1395+
--latest Use the latest version of the Workers runtime [boolean] [default: true]
13961396
--assets Static assets to be served. Replaces Workers Sites. [string]
13971397
--no-bundle Skip internal build steps and directly deploy script [boolean] [default: false]
13981398
--ip IP address to listen on [string]
@@ -1418,7 +1418,7 @@ describe.sequential("wrangler dev", () => {
14181418
--live-reload Auto reload HTML pages when change is detected in local mode [boolean]
14191419
--test-scheduled Test scheduled events by visiting /__scheduled in browser [boolean] [default: false]
14201420
--log-level Specify logging level [choices: \\"debug\\", \\"info\\", \\"log\\", \\"warn\\", \\"error\\", \\"none\\"] [default: \\"log\\"]
1421-
--show-interactive-dev-session Show interactive dev session (defaults to true if the terminal supports interactivity) [boolean]
1421+
--show-interactive-dev-session Show interactive dev session (defaults to true if the terminal supports interactivity) [boolean]
14221422
--experimental-registry, --x-registry Use the experimental file based dev registry for multi-worker development [boolean] [default: false]
14231423
--experimental-vectorize-bind-to-prod Bind to production Vectorize indexes in local development mode [boolean] [default: false]",
14241424
"warn": "",

0 commit comments

Comments
 (0)