Skip to content

Commit 7fa5735

Browse files
committed
chore: migrate to oxfmt
1 parent b43c751 commit 7fa5735

5 files changed

Lines changed: 68 additions & 27 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
run: bun run build
2424

2525
- name: Run format
26-
run: bun run format:check
26+
run: bun run format
2727

2828
- name: Run linter
2929
run: bun run lint

bun.lock

Lines changed: 43 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/agents/commands.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Use Bun to run repository scripts.
88
- `bun run test` runs the Jest test suite.
99
- `bun run test:ci` runs tests with coverage.
1010
- `bun run lint` runs ESLint.
11-
- `bun run format` checks formatting.
12-
- `bun run format:fix` writes formatting changes.
11+
- `bun run format` checks formatting with `oxfmt`.
12+
- `bun run format:fix` writes formatting changes with `oxfmt`.
1313
- `bun run validate` runs typecheck, test, lint, and formatting checks.
1414
- `bun run validate:fix` runs formatting and lint fixes, then typecheck and tests.

docs/agents/development-conventions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44
- Tests live in `src/__tests__/`.
55
- Project tests use `jest` with `ts-jest`.
66
- Linting uses ESLint.
7-
- Formatting uses Prettier through package scripts.
7+
- Formatting uses `oxfmt` through package scripts.
88
- Avoid adding unnecessary comments.

package.json

Lines changed: 21 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,23 @@
33
"version": "0.15.0",
44
"description": "A lightweight, JavaScript-only replacement for the deprecated React Test Renderer.",
55
"keywords": [
6+
"jest",
67
"react",
8+
"react-19",
79
"react-test-renderer",
8-
"testing",
910
"test-renderer",
10-
"react-19",
11-
"jest"
11+
"testing"
1212
],
13-
"author": "Maciej Jastrzebski <mdjastrzebski@gmail.com>",
13+
"homepage": "https://github.com/mdjastrzebski/test-renderer",
1414
"license": "MIT",
15+
"author": "Maciej Jastrzebski <mdjastrzebski@gmail.com>",
1516
"repository": {
1617
"type": "git",
1718
"url": "https://github.com/mdjastrzebski/test-renderer.git"
1819
},
19-
"homepage": "https://github.com/mdjastrzebski/test-renderer",
20+
"files": [
21+
"dist"
22+
],
2023
"type": "module",
2124
"main": "./dist/index.cjs",
2225
"module": "./dist/index.js",
@@ -31,9 +34,6 @@
3134
"default": "./package.json"
3235
}
3336
},
34-
"files": [
35-
"dist"
36-
],
3737
"scripts": {
3838
"build": "tsup",
3939
"check:react-release-guard": "node scripts/check-react-release-guard.mjs",
@@ -43,21 +43,16 @@
4343
"lint": "eslint .",
4444
"typecheck": "tsc --noEmit",
4545
"test:watch": "jest --watch",
46-
"validate": "bun run typecheck && bun run test && bun run lint && bun run format:check",
46+
"validate": "bun run typecheck && bun run test && bun run lint && bun run format",
4747
"validate:fix": "bun run format:fix && bun run lint --fix && bun run typecheck && bun run test -u",
48-
"format:check": "prettier --check .",
49-
"format:fix": "prettier --write .",
48+
"format": "oxfmt --check .",
49+
"format:check": "oxfmt --check .",
50+
"format:fix": "oxfmt .",
5051
"release": "release-it"
5152
},
52-
"testRenderer": {
53-
"supportedReactRange": ">=19.0.0 <19.3.0"
54-
},
5553
"dependencies": {
56-
"react-reconciler": "~0.31.0",
57-
"@types/react-reconciler": "~0.31.0"
58-
},
59-
"peerDependencies": {
60-
"react": "^19.0.0"
54+
"@types/react-reconciler": "~0.31.0",
55+
"react-reconciler": "~0.31.0"
6156
},
6257
"devDependencies": {
6358
"@eslint/js": "^10.0.1",
@@ -69,12 +64,18 @@
6964
"eslint": "^10.2.0",
7065
"eslint-plugin-simple-import-sort": "^13.0.0",
7166
"jest": "^30.3.0",
72-
"prettier": "^3.8.2",
67+
"oxfmt": "^0.44.0",
7368
"react": "^19.2.5",
7469
"release-it": "^19.2.4",
7570
"ts-jest": "^29.4.9",
7671
"tsup": "^8.5.1",
7772
"typescript": "~6.0.2",
7873
"typescript-eslint": "^8.58.1"
74+
},
75+
"peerDependencies": {
76+
"react": "^19.0.0"
77+
},
78+
"testRenderer": {
79+
"supportedReactRange": ">=19.0.0 <19.3.0"
7980
}
8081
}

0 commit comments

Comments
 (0)