Skip to content

Commit a989953

Browse files
committed
chore: migrate to oxlint and oxfmt
1 parent f1d8991 commit a989953

File tree

18 files changed

+319
-274
lines changed

18 files changed

+319
-274
lines changed

.oxfmtrc.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"$schema": "https://unpkg.com/oxfmt/configuration_schema.json"
3+
}

.oxlintrc.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"$schema": "https://unpkg.com/oxlint/configuration_schema.json",
3+
"plugins": [
4+
"unicorn",
5+
"typescript",
6+
"oxc"
7+
],
8+
"rules": {}
9+
}

.prettierignore

Lines changed: 0 additions & 4 deletions
This file was deleted.

.prettierrc

Lines changed: 0 additions & 1 deletion
This file was deleted.

CHANGELOG.md

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# Changelog
22

3-
43
## v0.4.26
54

65
[compare changes](https://github.com/unjs/obuild/compare/v0.4.25...v0.4.26)
@@ -374,7 +373,7 @@
374373

375374
### 🚀 Enhancements
376375

377-
- ⚠️ Stub transform with individual links ([#60](https://github.com/unjs/obuild/pull/60))
376+
- ⚠️ Stub transform with individual links ([#60](https://github.com/unjs/obuild/pull/60))
378377

379378
### 🩹 Fixes
380379

@@ -388,7 +387,7 @@
388387

389388
#### ⚠️ Breaking Changes
390389

391-
- ⚠️ Stub transform with individual links ([#60](https://github.com/unjs/obuild/pull/60))
390+
- ⚠️ Stub transform with individual links ([#60](https://github.com/unjs/obuild/pull/60))
392391

393392
### ❤️ Contributors
394393

@@ -447,7 +446,7 @@
447446

448447
### 📦 Build
449448

450-
- ⚠️ Update deps ([b576b72](https://github.com/unjs/obuild/commit/b576b72))
449+
- ⚠️ Update deps ([b576b72](https://github.com/unjs/obuild/commit/b576b72))
451450

452451
### 🏡 Chore
453452

@@ -457,7 +456,7 @@
457456

458457
#### ⚠️ Breaking Changes
459458

460-
- ⚠️ Update deps ([b576b72](https://github.com/unjs/obuild/commit/b576b72))
459+
- ⚠️ Update deps ([b576b72](https://github.com/unjs/obuild/commit/b576b72))
461460

462461
### ❤️ Contributors
463462

@@ -498,10 +497,10 @@
498497

499498
- Passthrough stub mode ([#28](https://github.com/unjs/obuild/pull/28))
500499
- Add `+x` permission to CLI entries ([#26](https://github.com/unjs/obuild/pull/26))
501-
- ⚠️ Allow passing all `dts` options for bundle ([2bab1e8](https://github.com/unjs/obuild/commit/2bab1e8))
502-
- ⚠️ Allow passing all `oxc-transform` options ([5729956](https://github.com/unjs/obuild/commit/5729956))
500+
- ⚠️ Allow passing all `dts` options for bundle ([2bab1e8](https://github.com/unjs/obuild/commit/2bab1e8))
501+
- ⚠️ Allow passing all `oxc-transform` options ([5729956](https://github.com/unjs/obuild/commit/5729956))
503502
- Allow passing all rolldown config to build entries ([edd39af](https://github.com/unjs/obuild/commit/edd39af))
504-
- ⚠️ Unified config for programmatic api ([33a5869](https://github.com/unjs/obuild/commit/33a5869))
503+
- ⚠️ Unified config for programmatic api ([33a5869](https://github.com/unjs/obuild/commit/33a5869))
505504

506505
### 📖 Documentation
507506

@@ -523,9 +522,9 @@
523522

524523
#### ⚠️ Breaking Changes
525524

526-
- ⚠️ Allow passing all `dts` options for bundle ([2bab1e8](https://github.com/unjs/obuild/commit/2bab1e8))
527-
- ⚠️ Allow passing all `oxc-transform` options ([5729956](https://github.com/unjs/obuild/commit/5729956))
528-
- ⚠️ Unified config for programmatic api ([33a5869](https://github.com/unjs/obuild/commit/33a5869))
525+
- ⚠️ Allow passing all `dts` options for bundle ([2bab1e8](https://github.com/unjs/obuild/commit/2bab1e8))
526+
- ⚠️ Allow passing all `oxc-transform` options ([5729956](https://github.com/unjs/obuild/commit/5729956))
527+
- ⚠️ Unified config for programmatic api ([33a5869](https://github.com/unjs/obuild/commit/33a5869))
529528

530529
### ❤️ Contributors
531530

@@ -554,15 +553,15 @@
554553

555554
### 🚀 Enhancements
556555

557-
- ⚠️ Map dist paths based on source ([4170d54](https://github.com/unjs/obuild/commit/4170d54))
556+
- ⚠️ Map dist paths based on source ([4170d54](https://github.com/unjs/obuild/commit/4170d54))
558557

559558
### 💅 Refactors
560559

561560
- Show dist info in cli output ([a6d475b](https://github.com/unjs/obuild/commit/a6d475b))
562561

563562
#### ⚠️ Breaking Changes
564563

565-
- ⚠️ Map dist paths based on source ([4170d54](https://github.com/unjs/obuild/commit/4170d54))
564+
- ⚠️ Map dist paths based on source ([4170d54](https://github.com/unjs/obuild/commit/4170d54))
566565

567566
### ❤️ Contributors
568567

@@ -704,7 +703,6 @@
704703

705704
## v0.0.1
706705

707-
708706
### 📦 Build
709707

710708
- Temp fix for cli bin ([1396284](https://github.com/unjs/obuild/commit/1396284))
@@ -717,4 +715,3 @@
717715
### ❤️ Contributors
718716

719717
- Pooya Parsa ([@pi0](https://github.com/pi0))
720-

eslint.config.mjs

Lines changed: 0 additions & 16 deletions
This file was deleted.

package.json

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,29 +2,26 @@
22
"name": "obuild",
33
"version": "0.4.26",
44
"description": "Zero-config ESM/TS package builder",
5-
"repository": "unjs/obuild",
65
"license": "MIT",
7-
"sideEffects": false,
8-
"type": "module",
9-
"exports": {
10-
".": "./dist/index.mjs",
11-
"./config": "./dist/config.mjs"
12-
},
13-
"types": "./dist/index.d.mts",
6+
"repository": "unjs/obuild",
147
"bin": {
158
"obuild": "./dist/cli.mjs"
169
},
1710
"files": [
1811
"dist"
1912
],
20-
"resolutions": {
21-
"obuild": "link:."
13+
"type": "module",
14+
"sideEffects": false,
15+
"types": "./dist/index.d.mts",
16+
"exports": {
17+
".": "./dist/index.mjs",
18+
"./config": "./dist/config.mjs"
2219
},
2320
"scripts": {
2421
"build": "pnpm obuild",
2522
"dev": "pnpm vitest",
26-
"lint": "eslint . && prettier -c src test",
27-
"lint:fix": "automd && eslint . --fix && prettier -w src test",
23+
"lint": "oxlint . && oxfmt --check src test",
24+
"lint:fix": "automd && oxlint . --fix && oxfmt src test",
2825
"obuild": "node ./src/cli.ts",
2926
"release": "pnpm test && pnpm build && changelogen --release && npm publish && git push --follow-tags",
3027
"test": "pnpm lint && pnpm test:types && pnpm vitest run --coverage",
@@ -38,22 +35,25 @@
3835
"magic-string": "^0.30.21",
3936
"pathe": "^2.0.3",
4037
"pretty-bytes": "^7.1.0",
41-
"rolldown": "^1.0.0-rc.3",
38+
"rolldown": "1.0.0-rc.3",
4239
"rolldown-plugin-dts": "^0.22.1",
4340
"rollup-plugin-license": "^3.6.0",
4441
"tinyglobby": "^0.2.15"
4542
},
4643
"devDependencies": {
4744
"@types/node": "^25.2.1",
48-
"@typescript/native-preview": "^7.0.0-dev.20260205.1",
45+
"@typescript/native-preview": "^7.0.0-dev.20260206.1",
4946
"@vitest/coverage-v8": "^4.0.18",
5047
"automd": "^0.4.3",
5148
"changelogen": "^0.6.2",
52-
"eslint": "^9.39.2",
5349
"eslint-config-unjs": "^0.6.2",
54-
"prettier": "^3.8.1",
50+
"oxfmt": "^0.28.0",
51+
"oxlint": "^1.43.0",
5552
"typescript": "^5.9.3",
5653
"vitest": "^4.0.18"
5754
},
55+
"resolutions": {
56+
"obuild": "link:."
57+
},
5858
"packageManager": "[email protected]"
5959
}

0 commit comments

Comments
 (0)