Skip to content

Commit f0f1055

Browse files
authored
fix default typesPath in c3 templates (#9244)
* fix default typesPath * changeset
1 parent 92874fe commit f0f1055

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/funny-trees-drop.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+
fix: set `compilerOptions.types` to `./worker-configuration.d.ts` instead of `worker-configuration.d.ts` in tsconfig.json

packages/create-cloudflare/src/templates.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,7 @@ export const createContext = async (
572572

573573
template = {
574574
workersTypes: "generated",
575-
typesPath: "worker-configuration.d.ts",
575+
typesPath: "./worker-configuration.d.ts",
576576
envInterfaceName: "Env",
577577
...template,
578578
};

0 commit comments

Comments
 (0)