From affdc56d77b86357fc474c6b729bcaa8edd8237d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Somhairle=20MacLe=C3=B2id?= Date: Thu, 25 Jul 2024 09:55:41 +0100 Subject: [PATCH] Exclude vitest.config.mts from hello world template types (#6333) * Exclude vitest.config.mts from hello world template types * Create light-guests-return.md --- .changeset/light-guests-return.md | 5 +++++ .../create-cloudflare/templates/hello-world/ts/tsconfig.json | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 .changeset/light-guests-return.md diff --git a/.changeset/light-guests-return.md b/.changeset/light-guests-return.md new file mode 100644 index 000000000000..05fea2acec21 --- /dev/null +++ b/.changeset/light-guests-return.md @@ -0,0 +1,5 @@ +--- +"create-cloudflare": patch +--- + +fix: Prevent `@types/node` from being erroneously included in the Hello World Worker typing environment. diff --git a/packages/create-cloudflare/templates/hello-world/ts/tsconfig.json b/packages/create-cloudflare/templates/hello-world/ts/tsconfig.json index 25f37d0f7327..c1ac9a4ccbca 100644 --- a/packages/create-cloudflare/templates/hello-world/ts/tsconfig.json +++ b/packages/create-cloudflare/templates/hello-world/ts/tsconfig.json @@ -98,5 +98,6 @@ // "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */ "skipLibCheck": true /* Skip type checking all .d.ts files. */ }, - "exclude": ["test"] + "exclude": ["test"], + "include": ["worker-configuration.d.ts", "src/**/*.ts"] }