Skip to content

Commit 1d0ccaa

Browse files
authored
wip (#1)
1 parent 6f83685 commit 1d0ccaa

27 files changed

Lines changed: 4231 additions & 1077 deletions

.cursor/rules/use-bun.mdc

Lines changed: 0 additions & 111 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77

88
jobs:
99
publish-npm:
10+
name: Build and Publish to npmjs.com
1011
permissions:
1112
id-token: write
1213
contents: read
@@ -15,7 +16,13 @@ jobs:
1516
- uses: actions/checkout@v5
1617
with:
1718
fetch-depth: 0
18-
- uses: oven-sh/setup-bun@v2
19-
- run: bun install
20-
- run: bun run build
21-
- run: bun publish --access=public
19+
- uses: pnpm/action-setup@v4
20+
with:
21+
run_install: false
22+
- uses: actions/setup-node@v6
23+
with:
24+
node-version: 22
25+
cache: pnpm
26+
- run: pnpm install --frozen-lockfile
27+
- run: pnpm run build
28+
- run: pnpm publish --access=public

.gitignore

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,8 @@
1-
# dependencies (bun install)
1+
# dependencies
22
node_modules
33

44
# output
5-
out
65
dist
7-
*.tgz
8-
9-
# code coverage
10-
coverage
11-
*.lcov
12-
13-
# logs
14-
logs
15-
_.log
16-
report.[0-9]_.[0-9]_.[0-9]_.[0-9]_.json
17-
18-
# dotenv environment variable files
19-
.env
20-
.env.development.local
21-
.env.test.local
22-
.env.production.local
23-
.env.local
246

257
# caches
268
.eslintcache

bun.lock

Lines changed: 0 additions & 860 deletions
This file was deleted.

package.json

Lines changed: 23 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,50 @@
11
{
2-
"name": "@grom.js/effectg",
2+
"name": "@grom.js/effect-tg",
33
"type": "module",
4-
"version": "0.1.1",
5-
"packageManager": "bun@1.3.1",
4+
"version": "0.2.0",
5+
"packageManager": "pnpm@10.22.0",
6+
"description": "Effectful library for crafting Telegram bots.",
7+
"author": {
8+
"name": "Vladislav Deryabkin",
9+
"url": "https://evermake.me"
10+
},
611
"license": "MIT",
12+
"homepage": "https://github.com/grom-dev/effect-tg",
713
"repository": {
814
"type": "git",
9-
"url": "https://github.com/grom-dev/effectg.git"
15+
"url": "https://github.com/grom-dev/effect-tg.git"
1016
},
17+
"keywords": ["effect", "telegram"],
1118
"exports": {
1219
".": {
1320
"types": "./dist/index.d.ts",
1421
"import": "./dist/index.js"
1522
}
1623
},
17-
"files": ["dist/"],
24+
"files": [
25+
"dist/"
26+
],
1827
"engines": {
1928
"node": "22.x"
2029
},
2130
"scripts": {
22-
"gen:bot-api": "bun run scripts/gen-bot-api.ts",
31+
"gen:bot-api": "node scripts/gen-bot-api.ts",
2332
"typecheck": "tsc --build --noEmit tsconfig.json",
24-
"build": "tsc --project tsconfig.lib.json",
33+
"build": "rm -rf dist/ && tsc --project tsconfig.lib.json",
2534
"deps": "taze --write --interactive --include-locked minor",
26-
"lint": "eslint .",
27-
"lint:fix": "eslint . --fix",
35+
"lint": "eslint",
36+
"lint:fix": "eslint --fix",
2837
"release": "bumpp"
2938
},
30-
"dependencies": {
31-
"@effect/platform": "0.93.0",
32-
"@effect/platform-bun": "0.83.0",
33-
"effect": "3.19.2"
39+
"peerDependencies": {
40+
"@effect/platform": "^0.93.1",
41+
"effect": "^3.19.3"
3442
},
3543
"devDependencies": {
3644
"@antfu/eslint-config": "6.2.0",
45+
"@effect/platform-node": "0.100.0",
3746
"@grom.js/bot-api-spec": "0.4.1",
38-
"@types/bun": "1.3.1",
39-
"@types/node": "^22.19.0",
47+
"@types/node": "22.19.1",
4048
"bumpp": "10.3.1",
4149
"eslint": "9.39.1",
4250
"eslint-plugin-format": "1.0.2",

0 commit comments

Comments
 (0)