Skip to content

Commit 73502e2

Browse files
remove npx usage
1 parent 476e9d2 commit 73502e2

4 files changed

Lines changed: 18 additions & 22 deletions

File tree

.github/workflows/release.yml

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,7 @@ jobs:
102102
run: bun build packages/cli/src/index.ts --compile --minify --sourcemap --target=${{ matrix.target }} --outfile ${{ matrix.binary }}
103103

104104
- name: Prepare npm package
105-
run: |
106-
chmod +x ${{ matrix.binary }}
107-
cp ${{ matrix.binary }} packages/${{ matrix.npm-pkg }}/
105+
run: cp ${{ matrix.binary }} packages/${{ matrix.npm-pkg }}/
108106

109107
- name: Upload artifact
110108
uses: actions/upload-artifact@v4
@@ -152,9 +150,7 @@ jobs:
152150
run: bun build packages/database-shell/src/cli.ts --compile --minify --sourcemap --target=${{ matrix.target }} --outfile ${{ matrix.binary }}
153151

154152
- name: Prepare npm package
155-
run: |
156-
chmod +x ${{ matrix.binary }}
157-
cp ${{ matrix.binary }} packages/${{ matrix.npm-pkg }}/
153+
run: cp ${{ matrix.binary }} packages/${{ matrix.npm-pkg }}/
158154

159155
- name: Upload artifact
160156
uses: actions/upload-artifact@v4
@@ -188,6 +184,13 @@ jobs:
188184
cp -r npm-artifacts/$pkg/* packages/$pkg/
189185
done
190186
187+
- name: Set execute permissions
188+
run: |
189+
chmod +x packages/cli-linux-x64/bunny
190+
chmod +x packages/cli-linux-arm64/bunny
191+
chmod +x packages/cli-darwin-x64/bunny
192+
chmod +x packages/cli-darwin-arm64/bunny
193+
191194
- name: Publish platform packages
192195
run: |
193196
for pkg in cli-linux-x64 cli-linux-arm64 cli-darwin-x64 cli-darwin-arm64 cli-windows-x64; do
@@ -252,6 +255,13 @@ jobs:
252255
cp -r npm-artifacts/$pkg/* packages/$pkg/
253256
done
254257
258+
- name: Set execute permissions
259+
run: |
260+
chmod +x packages/database-shell-linux-x64/bsql
261+
chmod +x packages/database-shell-linux-arm64/bsql
262+
chmod +x packages/database-shell-darwin-x64/bsql
263+
chmod +x packages/database-shell-darwin-arm64/bsql
264+
255265
- name: Publish platform packages
256266
run: |
257267
for pkg in database-shell-linux-x64 database-shell-linux-arm64 database-shell-darwin-x64 database-shell-darwin-arm64 database-shell-windows-x64; do

AGENTS.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ This is a Bun workspace monorepo with four packages:
7474

7575
- **`@bunny.net/api`** (`packages/api/`) — Standalone, type-safe API client SDK for bunny.net. Zero CLI dependencies. Publishable to npm.
7676
- **`@bunny.net/app-config`** (`packages/app-config/`) — Shared app configuration schemas (Zod), inferred types, JSON Schema generation, and API conversion functions. Used by the CLI and potentially other tools.
77-
- **`@bunny.net/database-shell`** (`packages/database-shell/`) — Standalone interactive SQL shell for libSQL databases. Framework-agnostic REPL, dot-commands, formatting, masking, and history. Also usable as a standalone CLI via `npx @bunny.net/database-shell` (binary: `bsql`).
77+
- **`@bunny.net/database-shell`** (`packages/database-shell/`) — Standalone interactive SQL shell for libSQL databases. Framework-agnostic REPL, dot-commands, formatting, masking, and history. Also usable as a standalone CLI (binary: `bsql`).
7878
- **`@bunny.net/cli`** (`packages/cli/`) — The CLI. Depends on `@bunny.net/api`, `@bunny.net/app-config`, and `@bunny.net/database-shell`.
7979

8080
```
@@ -122,7 +122,7 @@ bunny-cli/
122122
│ │ ├── package.json # bin: { "bsql": "./src/cli.ts" }
123123
│ │ ├── tsconfig.json
124124
│ │ └── src/
125-
│ │ ├── cli.ts # Standalone CLI entry point (npx @bunny.net/database-shell / bsql)
125+
│ │ ├── cli.ts # Standalone CLI entry point (bsql)
126126
│ │ ├── index.ts # Barrel export: startShell, executeQuery, executeFile, types
127127
│ │ ├── shell.ts # startShell() REPL engine, executeQuery(), executeFile()
128128
│ │ ├── dot-commands.ts # .tables, .schema, .fk, .er, .truncate, .dump, .count, .size, etc.

packages/cli/README.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,6 @@ Command-line interface for [bunny.net](https://bunny.net) — manage databases,
88
npm install -g @bunny.net/cli
99
```
1010

11-
Or run directly without installing:
12-
13-
```bash
14-
npx @bunny.net/cli
15-
```
16-
1711
## Quick Start
1812

1913
```bash

packages/database-shell/README.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,6 @@ Also powers `bunny db shell` in the [Bunny CLI](https://www.npmjs.com/package/@b
66

77
## Quick Start
88

9-
Run directly without installing:
10-
11-
```bash
12-
npx @bunny.net/database-shell libsql://<your-database>.lite.bunnydb.net --token ey...
13-
```
14-
15-
Or install globally:
16-
179
```bash
1810
npm install -g @bunny.net/database-shell
1911
bsql libsql://<your-database>.lite.bunnydb.net --token ey...

0 commit comments

Comments
 (0)