Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
21e8 committed Dec 7, 2024
1 parent 253ee5e commit 394f999
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 21 deletions.
15 changes: 8 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@
"description": "Batched Telegram notification bot for 0xAlice",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"type": "module",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js",
"require": "./dist/index.js"
}
},
"scripts": {
"build": "tsc",
"test": "NODE_OPTIONS=--experimental-vm-modules jest",
Expand All @@ -17,13 +25,6 @@
"dist/**/*",
"README.md"
],
"type": "module",
"exports": {
".": {
"import": "./dist/index.js",
"require": "./dist/index.js"
}
},
"repository": {
"type": "git",
"url": "git+https://github.com/21e8/telegram-batch-bot.git"
Expand Down
7 changes: 1 addition & 6 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
export * from './types';
export { MessageBatcher } from './batcher';
export { TelegramBatcher } from './telegram';
export type {
NotificationLevel,
TelegramConfig,
Message,
BatcherConfig,
} from './types';
14 changes: 6 additions & 8 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,18 @@
{
"compilerOptions": {
"target": "ES2020",
"module": "ESNext",
"lib": ["ES2020", "DOM"],
"module": "ES2020",
"moduleResolution": "node",
"declaration": true,
"declarationMap": true,
"sourceMap": true,
"outDir": "./dist",
"rootDir": "./src",
"strict": true,
"moduleResolution": "node",
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"resolveJsonModule": true,
"isolatedModules": true,
"preserveSymlinks": true
"resolveJsonModule": true
},
"include": ["src/**/*"],
"exclude": ["node_modules", "dist", "**/__tests__/**"]
"exclude": ["node_modules", "dist", "src/**/*.test.ts"]
}

0 comments on commit 394f999

Please sign in to comment.