You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 30b2897
Browse filesBrowse the repository at this point in the historyBrowse files
fix(cli): stop installing the native Biome binary with every CLI install (#564)
* fix(codegen-ts-*): drop the @biomejs/biome peer so the CLI stops installing the native binary
codegen-ts-react, codegen-ts-tanstack and codegen-ts-angular declared @biomejs/biome as a
peer, which npm auto-installs, putting the ~94 MB native @biomejs/cli-<platform> binary into
every CLI install. Nothing shipped uses it: formatting goes through @biomejs/wasm-nodejs.
The devDependency stays for the repo's lint gate. check-peer-ranges.ts now rejects a
publishable package that requires the native formatter. Fresh CLI install: 245 MB -> 151 MB.
* fix(cli): make the libSQL driver an optional peer so a Postgres-only install skips it
@libsql/kysely-libsql was a direct dependency of @metaobjectsdev/cli, so every install
carried it and its native addon. The CLI already imports it lazily, only for a sqlite URL on
Node, and prints a package-manager-specific install command when it is missing. It is now an
optional peer bounded like migrate-ts's, kept as a devDependency for the CLI's own tests.
Fresh CLI install with the Biome change: 245 MB -> 101 MB.
* no-mistakes(review): Revert libSQL optional-peer change; keep Biome removal
* no-mistakes(document): Fix CLI README Biome backend claim
Copy file name to clipboardExpand all lines: server/typescript/packages/cli/README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,7 +28,7 @@ bun run build:binary # → dist/meta (compiled for the build host's OS/ar
28
28
./dist/meta --help
29
29
```
30
30
31
-
The build externalizes two optional Biome WASM backends (`@biomejs/wasm-bundler`, `@biomejs/wasm-web`) that the CLI never loads — only the native Biome backend is used.
31
+
The build externalizes two optional Biome WASM backends (`@biomejs/wasm-bundler`, `@biomejs/wasm-web`) that the CLI never loads — codegen formats through the Node WebAssembly backend (`@biomejs/wasm-nodejs`), and the native Biome binary is not installed with the CLI.
0 commit comments