Skip to content

Commit f6da313

Browse files
kmelveclaude
andcommitted
chore: rename package to boxfix
Publish as unscoped `boxfix` instead of `@sanity-labs/boxfix` Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 74dd244 commit f6da313

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,13 @@ See the [`examples/`](./examples/) directory for more before/after examples.
3131
## Installation
3232

3333
```bash
34-
npm install -g @sanity-labs/boxfix
34+
npm install -g boxfix
3535
```
3636

3737
Or use directly with npx:
3838

3939
```bash
40-
npx @sanity-labs/boxfix input.md
40+
npx boxfix input.md
4141
```
4242

4343
## Usage
@@ -153,7 +153,7 @@ The key insight: **boundary lines are reliable, content lines aren't**.
153153
## Programmatic API
154154

155155
```typescript
156-
import { boxfixMarkdown, boxfix } from '@sanity-labs/boxfix';
156+
import { boxfixMarkdown, boxfix } from 'boxfix';
157157

158158
// Process markdown with code blocks
159159
const result = boxfixMarkdown(markdownContent);
@@ -181,7 +181,7 @@ const diagram = boxfix(diagramContent);
181181
### Type Exports
182182

183183
```typescript
184-
import type { BoxfixResult, BoxfixStats, CodeBlock } from '@sanity-labs/boxfix';
184+
import type { BoxfixResult, BoxfixStats, CodeBlock } from 'boxfix';
185185

186186
interface BoxfixResult {
187187
fixed: string; // The fixed content
@@ -214,7 +214,7 @@ repos:
214214
hooks:
215215
- id: boxfix
216216
name: Fix diagram borders
217-
entry: npx @sanity-labs/boxfix --check
217+
entry: npx boxfix --check
218218
language: system
219219
files: '\.md$'
220220
```
@@ -233,7 +233,7 @@ jobs:
233233
- uses: actions/setup-node@v4
234234
with:
235235
node-version: '20'
236-
- run: npx @sanity-labs/boxfix --check **/*.md
236+
- run: npx boxfix --check **/*.md
237237
```
238238
239239
### AI Agent Hooks
@@ -271,7 +271,7 @@ Add to `.claude/settings.json`:
271271
"hooks": [
272272
{
273273
"type": "command",
274-
"command": "npx @sanity-labs/boxfix --hook"
274+
"command": "npx boxfix --hook"
275275
}
276276
]
277277
}
@@ -290,7 +290,7 @@ Add to `.cursor/hooks.json`:
290290
{
291291
"afterFileEdit": [
292292
{
293-
"command": "npx @sanity-labs/boxfix --hook"
293+
"command": "npx boxfix --hook"
294294
}
295295
]
296296
}
@@ -306,7 +306,7 @@ Add to `.windsurf/hooks.json`:
306306
{
307307
"post_write_code": [
308308
{
309-
"command": "npx @sanity-labs/boxfix --hook"
309+
"command": "npx boxfix --hook"
310310
}
311311
]
312312
}

examples/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ This directory contains examples of diagrams that boxfix can fix. Each file show
1717
Fix a single example and see the output:
1818

1919
```bash
20-
npx @sanity-labs/boxfix examples/simple-box.md
20+
npx boxfix examples/simple-box.md
2121
```
2222

2323
Check if examples need fixing (useful in CI):
2424

2525
```bash
26-
npx @sanity-labs/boxfix --check examples/*.md
26+
npx boxfix --check examples/*.md
2727
```
2828

2929
## What Gets Fixed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@sanity-labs/boxfix",
2+
"name": "boxfix",
33
"version": "1.0.0",
44
"description": "Fix misaligned ASCII diagram borders in markdown files",
55
"type": "module",
@@ -16,7 +16,7 @@
1616
"boxfix": "./dist/cli.js"
1717
},
1818
"publishConfig": {
19-
"access": "public"
19+
"registry": "https://registry.npmjs.org/"
2020
},
2121
"files": [
2222
"dist"

0 commit comments

Comments
 (0)