Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions examples/bot.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// deno-lint-ignore-file no-import-prefix -- grammy pulled directly from denopkg in the example
import { Bot } from "https://denopkg.com/grammyjs/grammY@v1.45.1/src/mod.ts";
import { Bot } from "../src/deps.deno.ts";
import {
Bold,
Divider,
Expand Down
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,12 @@
},
"files": ["out"],
"scripts": {
"build": "deno2node --project tsconfig.json"
"build": "deno2node --project tsconfig.json",
"prepare": "npm run build"
},
"devDependencies": {
"deno2node": "^6.0.0"
"deno2node": "^6.0.0",
"grammy": "^1.45.1"
},
"keywords": [
"telegram",
Expand Down
9 changes: 5 additions & 4 deletions src/deps.deno.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
export type {
Context,
InputFile,
NextFunction,
export {
Bot,
type Context,
type InputFile,
type NextFunction,
} from "https://denopkg.com/grammyjs/grammY@v1.45.1/src/mod.ts";
export type {
InputMediaAnimation,
Expand Down
2 changes: 1 addition & 1 deletion src/deps.node.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export type { Context, InputFile, NextFunction } from "grammy";
export { Bot, type Context, type InputFile, type NextFunction } from "grammy";
export type {
InputMediaAnimation,
InputMediaAudio,
Expand Down
Loading