Skip to content

Commit 38ee9e4

Browse files
authored
feat(create-cloudflare): update react template to fix type errors (#9031)
* feat(create-cloudflare): update react template to fix type errors * add changeset
1 parent 7749f42 commit 38ee9e4

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

.changeset/fluffy-mice-attack.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"create-cloudflare": patch
3+
---
4+
5+
update react template to fix type errors

packages/create-cloudflare/templates/react/workers/c3.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const configure = async (ctx: C3Context) => {
3636
doneText: `${brandColor(`installed`)} ${dim("@cloudflare/vite-plugin")}`,
3737
});
3838

39-
await transformViteConfig(ctx);
39+
transformViteConfig(ctx);
4040

4141
if (usesTypescript(ctx)) {
4242
updateTsconfigJson();

packages/create-cloudflare/templates/react/workers/ts/tsconfig.worker.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"extends": "./tsconfig.node.json",
33
"compilerOptions": {
44
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.worker.tsbuildinfo",
5-
"types": ["@cloudflare/workers-types/2023-07-01", "./worker-configuration.d.ts", "vite/client"],
5+
"types": ["@cloudflare/workers-types/2023-07-01", "vite/client"]
66
},
7-
"include": ["worker"],
7+
"include": ["./worker-configuration.d.ts", "./worker"]
88
}

0 commit comments

Comments
 (0)