-
Notifications
You must be signed in to change notification settings - Fork 734
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor
index.tsx
(and config.ts
) to pass strict-null checks
This actually slightly changes the processing of the environment configuration. Previously there were corner cases where the configuration might just crash. These are now handled more cleanly with more appropriate warnings. The yargs commands have been refactored slightly to be more consistent. Now each command that can be either in local or remote mode is structured the same way. The `config` is extracted from the args, then there is an `if-then-else` statement that handles the local and remote cases. This ensures that the `account_id` has the correct typings in remote mode as needed.
- Loading branch information
1 parent
ba6fc9c
commit 9769bc3
Showing
3 changed files
with
320 additions
and
209 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,8 @@ | ||
--- | ||
"wrangler": patch | ||
--- | ||
|
||
Do not crash when processing environment configuration. | ||
|
||
Previously there were corner cases where the configuration might just crash. | ||
These are now handled more cleanly with more appropriate warnings. |
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
Oops, something went wrong.