-
Notifications
You must be signed in to change notification settings - Fork 50
feat!: migrate the monorepo to Bun and Biome #327
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
1e2aed8
1d5742a
e7b0301
640cfee
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| --- | ||
| "@sei-js/precompiles": major | ||
| "@sei-js/registry": major | ||
| "@sei-js/sei-global-wallet": major | ||
| "@sei-js/mcp-server": major | ||
| "@sei-js/create-sei": major | ||
| --- | ||
|
|
||
| Migrate the monorepo to Bun and publish ESM-only packages. | ||
|
|
||
| **Breaking:** all packages drop CommonJS (`require`) entry points and flatten `dist/`. Consumers must use ESM `import`. `@sei-js/precompiles` now ships an `exports` map with working `./ethers`, `./viem`, and `./precompiles` subpaths. `@sei-js/sei-global-wallet` keeps the `./solana` entrypoint. | ||
|
|
||
| Install, build, and test with Bun (`bun install`, `bun run build`, `bun run test`). `@sei-js/mcp-server` now requires Node.js 20 or newer. The MCP server and precompiles development toolchain pin Viem to `2.37.2`, the last compatible release that includes `seiDevnet`. Generated apps target the new `@sei-js/precompiles` major. Packages continue to publish to npm via Changesets. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,6 +2,7 @@ | |
|
|
||
| # testing | ||
| packages/*/coverage | ||
| packages/*/coverage.json | ||
|
|
||
| examples/ | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| v20 | ||
| 24 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,26 +1,33 @@ | ||
| { | ||
| "$schema": "https://biomejs.dev/schemas/1.9.4/schema.json", | ||
| "$schema": "https://biomejs.dev/schemas/2.5.8/schema.json", | ||
| "vcs": { | ||
| "enabled": false, | ||
| "enabled": true, | ||
| "clientKind": "git", | ||
| "useIgnoreFile": false | ||
| "useIgnoreFile": true | ||
| }, | ||
| "files": { | ||
| "ignoreUnknown": false, | ||
| "ignore": ["*/coverage/*", "*/dist/*", "packages/create-sei/templates/**"] | ||
| "includes": [ | ||
| "**", | ||
| "!**/coverage", | ||
| "!**/dist", | ||
| "!**/node_modules", | ||
| "!**/bun.lock", | ||
| "!packages/create-sei/templates", | ||
|
alexander-sei marked this conversation as resolved.
|
||
| "!packages/create-sei/extensions", | ||
| "!packages/registry/chain-registry", | ||
| "!packages/registry/community-assetlist" | ||
| ] | ||
| }, | ||
| "formatter": { | ||
| "enabled": true, | ||
| "indentStyle": "tab", | ||
| "lineWidth": 160 | ||
| }, | ||
| "organizeImports": { | ||
| "enabled": true | ||
| }, | ||
| "linter": { | ||
| "enabled": true, | ||
| "rules": { | ||
| "recommended": true, | ||
| "preset": "recommended", | ||
|
alexander-sei marked this conversation as resolved.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [nit] I believe the Biome key here is |
||
| "correctness": { | ||
| "useExhaustiveDependencies": "off" | ||
| }, | ||
|
|
@@ -35,5 +42,32 @@ | |
| "jsxQuoteStyle": "double", | ||
| "trailingCommas": "none" | ||
| } | ||
| } | ||
| }, | ||
| "assist": { | ||
| "actions": { | ||
| "source": { | ||
| "organizeImports": "on" | ||
| } | ||
| } | ||
| }, | ||
| "overrides": [ | ||
| { | ||
| "includes": ["**/*.test.ts", "**/*.spec.ts", "**/__tests__/**", "**/tests/**"], | ||
| "linter": { | ||
| "rules": { | ||
| "suspicious": { | ||
| "noExplicitAny": "off" | ||
| }, | ||
| "style": { | ||
| "noNonNullAssertion": "off" | ||
| }, | ||
| "correctness": { | ||
| "noUnusedFunctionParameters": "off", | ||
| "noUnusedImports": "off", | ||
| "noUnusedVariables": "off" | ||
| } | ||
| } | ||
| } | ||
| } | ||
| ] | ||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nit] The step name still says "for npm OIDC publishing" but the version is now indirect via
.nvmrc. npm OIDC trusted publishing needs npm >= 11.5.1, which is why this was hard-pinned to'24'. It resolves to 24 today, but a future.nvmrcchange for the Bun/dev toolchain would silently break publishing here. Either keepnode-version: '24'on this step or add a comment on.nvmrcnoting that release.yml depends on it.