Skip to content
This repository was archived by the owner on May 25, 2026. It is now read-only.

Commit 55788ea

Browse files
committed
feat: use bun as package manager and script/test runner
1 parent 96e2599 commit 55788ea

14 files changed

Lines changed: 2914 additions & 11355 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
8+
jobs:
9+
quality-checks:
10+
name: Quality Checks
11+
runs-on: ubuntu-22.04
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v4
15+
- name: Setup Bun
16+
uses: oven-sh/setup-bun@v1
17+
with:
18+
bun-version: 1.3.1
19+
- name: Install Dependencies
20+
run: bun install --frozen-lockfile
21+
- name: Type Check
22+
run: bun run typecheck
23+
- name: Lint Check
24+
run: bun run lint
25+
- name: Build Check
26+
run: bun run build
27+
28+
all-jobs-pass:
29+
name: All jobs pass
30+
runs-on: ubuntu-22.04
31+
needs:
32+
- quality-checks
33+
steps:
34+
- run: echo "success"

.github/workflows/workflow.yaml

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

.vscode/settings.json

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,14 @@
11
{
2-
"editor.formatOnSave": true,
3-
"files.eol": "\n",
4-
"mochaExplorer.files": "tests/**/*.test.ts",
5-
"mochaExplorer.require": [
6-
"ts-node/register",
7-
"tsconfig-paths/register",
8-
"jsdom-global/register"
9-
],
10-
"mochaExplorer.monkeyPatch": false,
11-
"mochaExplorer.timeout": 60000,
12-
"mochaExplorer.env": {
13-
"TS_NODE_PROJECT": "tsconfig.json",
14-
"TS_NODE_COMPILER_OPTIONS": "{\"module\": \"commonjs\" }"
2+
"editor.codeActionsOnSave": {
3+
"source.fixAll": "always"
154
},
165
"editor.defaultFormatter": "esbenp.prettier-vscode",
6+
"editor.formatOnSave": true,
7+
"editor.rulers": [100],
8+
"editor.tabSize": 2,
9+
"files.autoSave": "onFocusChange",
10+
"files.eol": "\n",
11+
"files.insertFinalNewline": true,
1712
"javascript.suggestionActions.enabled": false,
1813
"typescript.suggestionActions.enabled": false
1914
}

Makefile

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

bun.lock

Lines changed: 911 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,12 @@
3939
],
4040
"license": "MIT",
4141
"scripts": {
42-
"build": "make build",
43-
"lint": "make lint",
44-
"deploy": "yarn build && npm publish",
45-
"test": "make test"
42+
"build": "rm -rf dist && tsc --module commonjs",
43+
"lint": "eslint ./src --ext .js,.ts",
44+
"deploy": "bun run build && bun publish",
45+
"test": "bun run test",
46+
"test:cov": "bun run test --coverage",
47+
"typecheck": "tsc --noEmit"
4648
},
4749
"dependencies": {
4850
"@polymarket/builder-signing-sdk": "^0.0.8",
@@ -54,13 +56,11 @@
5456
"devDependencies": {
5557
"@babel/core": "7.23.2",
5658
"@babel/traverse": ">=7.23.2",
57-
"@types/chai": "^4.3.3",
58-
"@types/mocha": "^9.1.1",
59+
"@types/bun": "^1.3.1",
5960
"@types/node": "^18.7.18",
6061
"@types/ws": "^8.5.3",
6162
"@typescript-eslint/eslint-plugin": "^5.37.0",
6263
"@typescript-eslint/parser": "^5.37.0",
63-
"chai": "^4.3.6",
6464
"dotenv": "^16.0.2",
6565
"eslint": "^8.23.1",
6666
"eslint-config-prettier": "^8.5.0",
@@ -70,19 +70,14 @@
7070
"eslint-plugin-node": "^11.1.0",
7171
"eslint-plugin-promise": "^6.0.1",
7272
"eslint-plugin-unused-imports": "^2.0.0",
73-
"esm": "^3.2.25",
7473
"jsdom": "^20.0.0",
7574
"jsdom-global": "^3.0.2",
76-
"mocha": "^10.0.0",
77-
"nyc": "^15.1.0",
7875
"path": "^0.12.7",
79-
"prettier": "^2.7.1",
80-
"ts-mocha": "^10.0.0",
81-
"ts-node": "^10.9.1",
82-
"typescript": "^4.8.3",
76+
"prettier": "^3.6.2",
77+
"typescript": "^5.9.3",
8378
"ws": "^8.11.0"
8479
},
8580
"resolutions": {
8681
"@babel/traverse": ">=7.23.2"
8782
}
88-
}
83+
}

0 commit comments

Comments
 (0)