Skip to content

Commit 0e83865

Browse files
authored
Merge pull request #4 from hackmdio/chore/reduce-bundle-size
chore: reduce bundle size
2 parents 5d52e3b + d645fcf commit 0e83865

File tree

4 files changed

+42
-306
lines changed

4 files changed

+42
-306
lines changed

.github/workflows/build.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: build
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v3
14+
- uses: actions/setup-node@v3
15+
with:
16+
node-version: 18.x
17+
- uses: pnpm/action-setup@v4
18+
- run: pnpm i
19+
- run: pnpm lint
20+
- run: pnpm dist

package.json

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@
5757
"lib0": "^0.2.93",
5858
"redis": "^4.6.12",
5959
"socket.io": "^4.7.5",
60+
"socket.io-client": "^4.8.0",
6061
"y-protocols": "^1.0.6",
6162
"yjs": "^13.6.18"
6263
},
@@ -65,20 +66,17 @@
6566
"postgres": "^3.4.3"
6667
},
6768
"engines": {
68-
"npm": ">=8.0.0",
6969
"node": ">=18.0.0"
7070
},
71+
"packageManager": "[email protected]",
7172
"devDependencies": {
7273
"@dotenvx/dotenvx": "^1.14.0",
7374
"@redis/client": "^1.6.0",
7475
"@types/node": "^20.11.5",
7576
"@types/ws": "^8.5.10",
7677
"concurrently": "^8.2.2",
77-
"socket.io-client": "^4.7.5",
7878
"standard": "^17.1.0",
7979
"tsup": "^8.2.4",
80-
"typescript": "^5.3.3",
81-
"ws": "^8.16.0",
82-
"y-websocket": "^2.0.3"
80+
"typescript": "^5.3.3"
8381
}
8482
}

0 commit comments

Comments
 (0)