-
Notifications
You must be signed in to change notification settings - Fork 748
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add experimental_patchConfig (#7521)
* add experimental_readRawConfig and tests * move printBindings out of /config/index.ts * add experimental_patchConfig * fixups * add tests * changeset * more tests * pr feedback * allow editing and deleting with `isArrayInsertion` flag * more tests * fixups * update changeset * fix test
- Loading branch information
1 parent
086a6b8
commit 48e7e10
Showing
5 changed files
with
1,000 additions
and
13 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,7 @@ | ||
--- | ||
"wrangler": patch | ||
--- | ||
|
||
feat: add experimental_patchConfig() | ||
|
||
`experimental_patchConfig()` can add to a user's config file. It preserves comments if its a `wrangler.jsonc`. However, it is not suitable for `wrangler.toml` with comments as we cannot preserve comments on write. |
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.