Skip to content

Commit

Permalink
chore: bump and hide non-bot for non-bun pms
Browse files Browse the repository at this point in the history
  • Loading branch information
kravetsone committed Dec 26, 2024
1 parent 2b0ea03 commit 2258827
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "create-gramio",
"version": "1.3.0",
"version": "1.3.1",
"description": "Scaffolding your GramIO project with the environment with easy!",
"keywords": [
"gramio",
Expand Down
4 changes: 3 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,9 @@ createOrFindDir(projectDir)
"Mini App + Bot + Elysia (backend framework) monorepo",
"Mini App + Bot monorepo",
// "Plugin",
],
].filter((x) =>
preferences.packageManager !== "bun" ? x === "Bot" : true,
),
});
preferences.type = type;

Expand Down
2 changes: 1 addition & 1 deletion src/templates/package.json.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export function getPackageJson({
dev:
packageManager === "bun"
? "bun --watch src/index.ts"
: `${pmExecuteMap[packageManager]} tsx --env-file=.env watch src/index.ts`,
: `${pmExecuteMap[packageManager]} tsx --env-file .env watch src/index.ts`,
} as Record<string, string>,
dependencies: {
gramio: dependencies.gramio,
Expand Down

0 comments on commit 2258827

Please sign in to comment.