-
Notifications
You must be signed in to change notification settings - Fork 736
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
treat "name" in `wrangler init [name] as a path (#877)
Treat the "name" parameter in wrangler init as a path. This means that running wrangler init . will create a worker in the current directory, and the worker's name will be the name of the current directory. You can also run wrangler init path/to/my-worker and a worker will be created at [CWD]/path/to/my-worker with the name my-worker,
- Loading branch information
Cass Fridkin
authored
May 2, 2022
1 parent
7a1eb41
commit 97f945f
Showing
3 changed files
with
72 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
"wrangler": patch | ||
--- | ||
|
||
Treat the "name" parameter in `wrangler init` as a path. | ||
|
||
This means that running `wrangler init .` will create a worker in the current directory, | ||
and the worker's name will be the name of the current directory. | ||
|
||
You can also run `wrangler init path/to/my-worker` and a worker will be created at | ||
`[CWD]/path/to/my-worker` with the name `my-worker`, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters