mirror of
https://github.com/FranP-code/create-better-t-stack.git
synced 2025-10-12 23:52:15 +00:00
fix(cli): add @cloudflare/workers-types to devDependencies and update tsconfig for alchemy deployment
This commit is contained in:
@@ -13,7 +13,7 @@ export async function setupNextAlchemyDeploy(
|
||||
|
||||
await addPackageDependency({
|
||||
dependencies: ["@opennextjs/cloudflare"],
|
||||
devDependencies: ["alchemy", "dotenv", "wrangler"],
|
||||
devDependencies: ["alchemy", "dotenv", "wrangler", "@cloudflare/workers-types"],
|
||||
projectDir: webAppDir,
|
||||
});
|
||||
|
||||
|
||||
@@ -21,16 +21,22 @@
|
||||
],
|
||||
"paths": {
|
||||
"@/*": ["./src/*"]
|
||||
}
|
||||
}{{#if (or (eq serverDeploy "alchemy") (eq webDeploy "alchemy"))}},
|
||||
"types": [
|
||||
"@cloudflare/workers-types"
|
||||
]{{/if}}
|
||||
},
|
||||
"include": [
|
||||
{{#if (eq serverDeploy "alchemy")}}
|
||||
"../server/env.d.ts",
|
||||
{{/if}}
|
||||
{{#if (eq serverDeploy "wrangler")}}
|
||||
"../server/worker-configuration.d.ts",
|
||||
{{/if}}
|
||||
"./next-env.d.ts",
|
||||
"./**/*.ts",
|
||||
"./**/*.tsx",
|
||||
"./.next/types/**/*.ts",
|
||||
{{#if (eq runtime "workers")}}
|
||||
"../server/worker-configuration.d.ts"
|
||||
{{/if}}
|
||||
"./.next/types/**/*.ts"
|
||||
],
|
||||
"exclude": [
|
||||
"./node_modules"
|
||||
|
||||
Reference in New Issue
Block a user