Skip to content

Commit 9d701fb

Browse files
committed
chore: some fixes
1 parent 4c00706 commit 9d701fb

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "create-elysiajs",
33
"type": "commonjs",
4-
"version": "1.5.3",
4+
"version": "1.5.5",
55
"description": "Scaffolding your Elysia project with the environment with easy!",
66
"author": "kravetsone",
77
"repository": {

src/templates/elysia.ts

+1
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ export function getElysiaIndex({
6161

6262
if (telegramRelated && !isMonorepo) {
6363
elysiaImports.push(`import { bot } from "./bot.ts"`);
64+
elysiaImports.push(`import { webhookHandler } from "./services/auth.ts"`);
6465
elysiaPlugins.push(
6566
`.post(\`/\${config.BOT_TOKEN}\`, webhookHandler(bot, "elysia"), {
6667
detail: {

src/templates/package.json.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ export function getPackageJson({
1515
redis,
1616
mockWithPGLite,
1717
telegramRelated,
18+
s3Client,
1819
}: Preferences) {
1920
const sample = {
2021
name: projectName,
@@ -139,7 +140,7 @@ export function getPackageJson({
139140
sample.dependencies["@gramio/init-data"] =
140141
dependencies["@gramio/init-data"];
141142

142-
if (others.includes("S3")) {
143+
if (others.includes("S3") && s3Client === "@aws-sdk/client-s3") {
143144
sample.dependencies["@aws-sdk/client-s3"] =
144145
dependencies["@aws-sdk/client-s3"];
145146
}
@@ -152,7 +153,7 @@ export function getPackageJson({
152153

153154
if (telegramRelated && !isMonorepo) {
154155
sample.dependencies.gramio = dependencies.gramio;
155-
sample.devDependencies["@gramio/init-data"] =
156+
sample.dependencies["@gramio/init-data"] =
156157
dependencies["@gramio/init-data"];
157158
}
158159

0 commit comments

Comments
 (0)