Skip to content

Commit 4598afa

Browse files
committed
feat: migrate monorepo tooling and MCP refactors to Bun
- migrate workflows and scripts to Bun\n- refactor MCP server tools/resources structure and security handling\n- apply formatting and config cleanup across packages
1 parent 9168186 commit 4598afa

203 files changed

Lines changed: 10961 additions & 29246 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/checks.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,21 @@ jobs:
1111
with:
1212
fetch-depth: 0 # Fetch the full history instead of a shallow clone
1313

14-
- uses: actions/setup-node@v4
14+
- uses: oven-sh/setup-bun@v2
1515
with:
16-
node-version-file: '.nvmrc'
17-
18-
- name: Install pnpm
19-
uses: pnpm/action-setup@v4
16+
bun-version: "1.3.x"
2017

2118
- name: Install system dependencies
2219
run: sudo apt-get update && sudo apt-get install -y rsync
2320

2421
- name: Install dependencies
25-
run: pnpm install --frozen-lockfile
22+
run: bun install --frozen-lockfile
23+
24+
- name: Lint & Format Check
25+
run: bun run check
2626

2727
- name: Build All Packages
28-
run: pnpm build:all
28+
run: bun run build
2929

3030
- name: Test
31-
run: pnpm test:all
31+
run: bun test packages/*

.github/workflows/coverage.yml

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,32 +18,29 @@ jobs:
1818
uses: actions/checkout@v4
1919
with:
2020
fetch-depth: 0 # Fetch the full history instead of a shallow clone
21-
- name: Use Node.js
22-
uses: actions/setup-node@v4
21+
22+
- uses: oven-sh/setup-bun@v2
2323
with:
24-
node-version-file: '.nvmrc'
24+
bun-version: "1.3.x"
2525

2626
- uses: browser-actions/setup-chrome@v1
2727
- run: chrome --version
2828

29-
- name: Install pnpm
30-
uses: pnpm/action-setup@v4
31-
3229
- name: Install system dependencies
3330
run: sudo apt-get update && sudo apt-get install -y rsync
3431

3532
- name: Install dependencies
36-
run: pnpm install --frozen-lockfile
33+
run: bun install --frozen-lockfile
3734

3835
- name: Build packages
39-
run: pnpm build:all
36+
run: bun run build
4037

41-
- name: Run Jest tests
42-
run: pnpm test:coverage
38+
- name: Run tests with coverage
39+
run: bun test --coverage --coverage-reporter=lcov packages/*
4340

4441
- name: Upload coverage reports to Codecov
4542
uses: codecov/codecov-action@v4
4643
with:
47-
files: '**/coverage-final.json'
44+
files: '**/lcov.info'
4845
token: ${{ secrets.CODECOV_TOKEN }}
4946
fail_ci_if_error: true

.github/workflows/release.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,23 +29,24 @@ jobs:
2929
node-version: '24'
3030
registry-url: 'https://registry.npmjs.org'
3131

32-
- name: Install pnpm
33-
uses: pnpm/action-setup@v4
32+
- uses: oven-sh/setup-bun@v2
33+
with:
34+
bun-version: "1.3.x"
3435

3536
- name: Install system dependencies
3637
run: sudo apt-get update && sudo apt-get install -y rsync
3738

3839
- name: Install Dependencies
39-
run: pnpm install --frozen-lockfile
40+
run: bun install --frozen-lockfile
4041

4142
- name: Build Packages
42-
run: pnpm build:all
43+
run: bun run build
4344

4445
- name: Create Release Pull Request or Publish to npm
4546
id: changesets
4647
uses: changesets/action@v1
4748
with:
4849
# Release builds the packages and calls changeset publish
49-
publish: pnpm release
50+
publish: bun run release
5051
env:
5152
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ examples/
77

88
# compiled output
99
dist
10+
*.tsbuildinfo
1011
tmp
1112
/out-tsc
1213
main
@@ -42,6 +43,11 @@ testem.log
4243
/typings
4344
.next
4445

46+
# environment variables
47+
.env
48+
.env.*
49+
!.env.example
50+
4551
# System Files
4652
.DS_Store
4753
Thumbs.db

README.md

Lines changed: 22 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,20 +23,35 @@ please refer to the table below.
2323

2424
### Prerequisites
2525

26-
This project uses Yarn 4.7.0 with Corepack for package management. To get started:
26+
This project uses [Bun](https://bun.sh) for package management and testing. To get started:
2727

28-
1. **Enable Corepack** (if not already enabled):
28+
1. **Install Bun** (if not already installed):
2929
```bash
30-
corepack enable
30+
curl -fsSL https://bun.sh/install | bash
3131
```
3232

3333
2. **Install dependencies**:
3434
```bash
35-
yarn install
35+
bun install
3636
```
3737

38-
The correct Yarn version will be automatically used thanks to the `packageManager` field in `package.json` and Corepack.
39-
4038
### Building
4139

42-
To build all packages and docs, run `pnpm install` then `pnpm build:all`
40+
To build all packages, run:
41+
```bash
42+
bun run build
43+
```
44+
45+
### Testing
46+
47+
```bash
48+
bun test packages/*
49+
```
50+
51+
### Linting & Formatting
52+
53+
This project uses [Biome](https://biomejs.dev) for linting and formatting:
54+
```bash
55+
bun run check # lint + format check
56+
bun run check:fix # lint + format fix
57+
```

biome.json

Lines changed: 44 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,46 @@
11
{
2-
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
3-
"vcs": {
4-
"enabled": false,
5-
"clientKind": "git",
6-
"useIgnoreFile": false
7-
},
8-
"files": {
9-
"ignoreUnknown": false,
10-
"ignore": ["*/coverage/*", "*/dist/*", "packages/create-sei/templates/**"]
11-
},
12-
"formatter": {
13-
"enabled": true,
14-
"indentStyle": "tab",
15-
"lineWidth": 160
16-
},
17-
"organizeImports": {
18-
"enabled": true
19-
},
20-
"linter": {
21-
"enabled": true,
22-
"rules": {
23-
"recommended": true,
24-
"correctness": {
25-
"useExhaustiveDependencies": "off"
26-
},
27-
"style": {
28-
"noUselessElse": "off"
29-
}
30-
}
31-
},
32-
"javascript": {
33-
"formatter": {
34-
"quoteStyle": "single",
35-
"jsxQuoteStyle": "double",
36-
"trailingCommas": "none"
37-
}
38-
}
2+
"$schema": "https://biomejs.dev/schemas/2.4.5/schema.json",
3+
"vcs": {
4+
"enabled": true,
5+
"clientKind": "git",
6+
"useIgnoreFile": true
7+
},
8+
"files": {
9+
"ignoreUnknown": false,
10+
"includes": ["packages/**/*.ts", "packages/**/*.tsx", "packages/**/*.css"]
11+
},
12+
"formatter": {
13+
"enabled": true,
14+
"formatWithErrors": false,
15+
"indentStyle": "space",
16+
"indentWidth": 2,
17+
"lineEnding": "lf",
18+
"lineWidth": 160
19+
},
20+
"linter": {
21+
"enabled": true,
22+
"rules": {
23+
"recommended": true,
24+
"suspicious": {
25+
"noExplicitAny": "warn"
26+
}
27+
}
28+
},
29+
"javascript": {
30+
"formatter": {
31+
"quoteStyle": "double"
32+
}
33+
},
34+
"css": {
35+
"parser": {
36+
"tailwindDirectives": true
37+
}
38+
},
39+
"assist": {
40+
"actions": {
41+
"source": {
42+
"organizeImports": "on"
43+
}
44+
}
45+
}
3946
}

0 commit comments

Comments
 (0)