Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/pretty-days-find.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"wrangler": minor
---

feat: `wrangler init --from-dash` now generates `wrangler.jsonc` config files instead of `wrangler.toml` files
4 changes: 2 additions & 2 deletions packages/wrangler/src/__tests__/get-entry.test.ts
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you shouldn't be making any changes in this file

Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,8 @@ describe("getEntry()", () => {
{
...defaultWranglerConfig,
main: "src/index.ts",
configPath: "other-worker/wrangler.toml",
userConfigPath: "other-worker/wrangler.toml",
configPath: "other-worker/wrangler.jsonc",
userConfigPath: "other-worker/wrangler.jsonc",
},
"deploy"
);
Expand Down
4 changes: 2 additions & 2 deletions packages/wrangler/src/__tests__/index.test.ts
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you shouldn't be making any changes in this file

Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,9 @@ describe("wrangler", () => {
);

await expect(
runWrangler("--config=wrangler.toml -c example")
runWrangler("--config=wrangler.jsonc -c example")
).rejects.toThrowErrorMatchingInlineSnapshot(
`[Error: The argument "--config" expects a single value, but received multiple: ["wrangler.toml","example"].]`
`[Error: The argument "--config" expects a single value, but received multiple: ["wrangler.jsonc","example"].]`
);
});

Expand Down
Loading
Loading