chz-telegram-bot 0.7.11 → 0.7.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/eslint.config.ts +7 -1
  2. package/package.json +41 -40
package/eslint.config.ts CHANGED
@@ -1,8 +1,14 @@
1
+ /// <reference types="node" />
1
2
  import eslint from '@eslint/js';
2
3
  import tseslint from 'typescript-eslint';
3
4
  import parser from '@typescript-eslint/parser';
5
+ import { defineConfig } from 'eslint/config';
6
+ import { fileURLToPath } from 'node:url';
7
+ import { dirname } from 'node:path';
4
8
 
5
- export default tseslint.config(
9
+ const __dirname = dirname(fileURLToPath(import.meta.url));
10
+
11
+ export default defineConfig(
6
12
  {
7
13
  ignores: ['dist/**', 'eslint.config.ts']
8
14
  },
package/package.json CHANGED
@@ -1,40 +1,41 @@
1
- {
2
- "name": "chz-telegram-bot",
3
- "description": "Opinionated TypeScript framework that provides a structured approach to building Telegram bots.",
4
- "author": {
5
- "name": "Alex Halanin",
6
- "url": "https://github.com/AlexSolari"
7
- },
8
- "license": "MIT",
9
- "keywords": [
10
- "telegram",
11
- "telegram bot"
12
- ],
13
- "repository": {
14
- "type": "git",
15
- "url": "https://github.com/AlexSolari/botFramework.git"
16
- },
17
- "version": "0.7.11",
18
- "type": "module",
19
- "dependencies": {
20
- "async-sema": "^3.1.1",
21
- "moment": "^2.29.4",
22
- "telegraf": "^4.16.3"
23
- },
24
- "main": "dist/index.js",
25
- "types": "dist/index.d.ts",
26
- "devDependencies": {
27
- "@eslint/js": "^9.29.0",
28
- "@types/bun": "^1.3.7",
29
- "@types/node": "^22.5.5",
30
- "eslint": "^9.29.0",
31
- "jiti": "^2.6.1",
32
- "typescript": "^5.9.0-beta",
33
- "typescript-eslint": "^8.34.1"
34
- },
35
- "scripts": {
36
- "build": "tsc -p tsconfig.build.json",
37
- "test": "bun test",
38
- "lint": "npx eslint && tsc --noEmit"
39
- }
40
- }
1
+ {
2
+ "name": "chz-telegram-bot",
3
+ "description": "Opinionated TypeScript framework that provides a structured approach to building Telegram bots.",
4
+ "author": {
5
+ "name": "Alex Halanin",
6
+ "url": "https://github.com/AlexSolari"
7
+ },
8
+ "license": "MIT",
9
+ "keywords": [
10
+ "telegram",
11
+ "telegram bot"
12
+ ],
13
+ "repository": {
14
+ "type": "git",
15
+ "url": "https://github.com/AlexSolari/botFramework.git"
16
+ },
17
+ "version": "0.7.12",
18
+ "type": "module",
19
+ "dependencies": {
20
+ "async-sema": "^3.1.1",
21
+ "moment": "^2.30.1",
22
+ "telegraf": "^4.16.3"
23
+ },
24
+ "main": "dist/index.js",
25
+ "types": "dist/index.d.ts",
26
+ "devDependencies": {
27
+ "@eslint/js": "^9.39.4",
28
+ "@types/bun": "^1.3.11",
29
+ "@types/node": "^22.19.15",
30
+ "eslint": "^9.39.4",
31
+ "jiti": "^2.6.1",
32
+ "typescript": "^6.0.2",
33
+ "typescript-eslint": "^8.58.0"
34
+ },
35
+ "scripts": {
36
+ "build": "tsc -p tsconfig.build.json",
37
+ "test": "bun test",
38
+ "lint": "eslint src && tsc -p tsconfig.build.json --noEmit",
39
+ "prep": "bun run lint && bun run test && bun run build"
40
+ }
41
+ }