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({
|
await addPackageDependency({
|
||||||
dependencies: ["@opennextjs/cloudflare"],
|
dependencies: ["@opennextjs/cloudflare"],
|
||||||
devDependencies: ["alchemy", "dotenv", "wrangler"],
|
devDependencies: ["alchemy", "dotenv", "wrangler", "@cloudflare/workers-types"],
|
||||||
projectDir: webAppDir,
|
projectDir: webAppDir,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -21,16 +21,22 @@
|
|||||||
],
|
],
|
||||||
"paths": {
|
"paths": {
|
||||||
"@/*": ["./src/*"]
|
"@/*": ["./src/*"]
|
||||||
}
|
}{{#if (or (eq serverDeploy "alchemy") (eq webDeploy "alchemy"))}},
|
||||||
|
"types": [
|
||||||
|
"@cloudflare/workers-types"
|
||||||
|
]{{/if}}
|
||||||
},
|
},
|
||||||
"include": [
|
"include": [
|
||||||
|
{{#if (eq serverDeploy "alchemy")}}
|
||||||
|
"../server/env.d.ts",
|
||||||
|
{{/if}}
|
||||||
|
{{#if (eq serverDeploy "wrangler")}}
|
||||||
|
"../server/worker-configuration.d.ts",
|
||||||
|
{{/if}}
|
||||||
"./next-env.d.ts",
|
"./next-env.d.ts",
|
||||||
"./**/*.ts",
|
"./**/*.ts",
|
||||||
"./**/*.tsx",
|
"./**/*.tsx",
|
||||||
"./.next/types/**/*.ts",
|
"./.next/types/**/*.ts"
|
||||||
{{#if (eq runtime "workers")}}
|
|
||||||
"../server/worker-configuration.d.ts"
|
|
||||||
{{/if}}
|
|
||||||
],
|
],
|
||||||
"exclude": [
|
"exclude": [
|
||||||
"./node_modules"
|
"./node_modules"
|
||||||
|
|||||||
Reference in New Issue
Block a user