Skip to content

Commit a55eb05

Browse files
committed
chore: update repo
1 parent bf25dd4 commit a55eb05

19 files changed

Lines changed: 881 additions & 485 deletions

.github/workflows/autofix.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
node-version: 22
2020
cache: "pnpm"
2121
- run: pnpm install
22-
- run: pnpm lint:fix
22+
- run: pnpm fmt
2323
- uses: autofix-ci/action@7a166d7532b277f34e16238930461bf77f9d7ed8
2424
with:
2525
commit-message: "chore: apply automated updates"

.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: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"$schema": "https://unpkg.com/oxlint/configuration_schema.json",
3+
"plugins": ["unicorn", "typescript", "oxc"],
4+
"rules": {}
5+
}

.prettierignore

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

.prettierrc

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

CHANGELOG.md

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

3-
43
## v1.1.0
54

65
[compare changes](https://github.com/unjs/exsolve/compare/v1.0.8...v1.1.0)
@@ -231,11 +230,11 @@
231230

232231
### 💅 Refactors
233232

234-
- ⚠️ Allow reorder `""` suffix ([69ab48c](https://github.com/unjs/exsolve/commit/69ab48c))
233+
- ⚠️ Allow reorder `""` suffix ([69ab48c](https://github.com/unjs/exsolve/commit/69ab48c))
235234

236235
#### ⚠️ Breaking Changes
237236

238-
- ⚠️ Allow reorder `""` suffix ([69ab48c](https://github.com/unjs/exsolve/commit/69ab48c))
237+
- ⚠️ Allow reorder `""` suffix ([69ab48c](https://github.com/unjs/exsolve/commit/69ab48c))
239238

240239
### ❤️ Contributors
241240

@@ -277,7 +276,7 @@
277276

278277
### 🔥 Performance
279278

280-
- ⚠️ Remove default extra fallbacks ([6b8cd74](https://github.com/unjs/exsolve/commit/6b8cd74))
279+
- ⚠️ Remove default extra fallbacks ([6b8cd74](https://github.com/unjs/exsolve/commit/6b8cd74))
281280

282281
### 🏡 Chore
283282

@@ -288,7 +287,7 @@
288287

289288
#### ⚠️ Breaking Changes
290289

291-
- ⚠️ Remove default extra fallbacks ([6b8cd74](https://github.com/unjs/exsolve/commit/6b8cd74))
290+
- ⚠️ Remove default extra fallbacks ([6b8cd74](https://github.com/unjs/exsolve/commit/6b8cd74))
292291

293292
### ❤️ Contributors
294293

@@ -300,11 +299,11 @@
300299

301300
### 🔥 Performance
302301

303-
- ⚠️ Remove default extra fallbacks ([6b8cd74](https://github.com/unjs/exsolve/commit/6b8cd74))
302+
- ⚠️ Remove default extra fallbacks ([6b8cd74](https://github.com/unjs/exsolve/commit/6b8cd74))
304303

305304
#### ⚠️ Breaking Changes
306305

307-
- ⚠️ Remove default extra fallbacks ([6b8cd74](https://github.com/unjs/exsolve/commit/6b8cd74))
306+
- ⚠️ Remove default extra fallbacks ([6b8cd74](https://github.com/unjs/exsolve/commit/6b8cd74))
308307

309308
### ❤️ Contributors
310309

@@ -399,4 +398,3 @@
399398
### ❤️ Contributors
400399

401400
- Pooya Parsa ([@pi0](http://github.com/pi0))
402-

README.md

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -29,25 +29,16 @@ Import:
2929

3030
```ts
3131
// ESM import
32-
import {
33-
resolveModuleURL,
34-
resolveModulePath,
35-
createResolver,
36-
clearResolveCache,
37-
} from "exsolve";
32+
import { resolveModuleURL, resolveModulePath, createResolver, clearResolveCache } from "exsolve";
3833

3934
// Or using dynamic import
4035
const { resolveModulePath } = await import("exsolve");
4136
```
4237

4338
```ts
44-
resolveModuleURL(id, {
45-
/* options */
46-
});
39+
resolveModuleURL(id, {/* options */});
4740

48-
resolveModulePath(id, {
49-
/* options */
50-
});
41+
resolveModulePath(id, {/* options */});
5142
```
5243

5344
Differences between `resolveModuleURL` and `resolveModulePath`:

eslint.config.mjs

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

package.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,22 @@
22
"name": "exsolve",
33
"version": "1.1.0",
44
"description": "Module resolution utilities based on Node.js upstream implementation.",
5-
"repository": "unjs/exsolve",
65
"license": "MIT",
7-
"sideEffects": false,
6+
"repository": "unjs/exsolve",
7+
"files": [
8+
"dist"
9+
],
810
"type": "module",
11+
"sideEffects": false,
12+
"types": "./dist/index.d.mts",
913
"exports": {
1014
".": "./dist/index.mjs"
1115
},
12-
"types": "./dist/index.d.mts",
13-
"files": [
14-
"dist"
15-
],
1616
"scripts": {
1717
"build": "obuild",
1818
"dev": "vitest dev",
19-
"lint": "eslint . && prettier -c .",
20-
"lint:fix": "automd && eslint . --fix && prettier -w .",
19+
"lint": "oxlint . && oxfmt --check .",
20+
"fmt": "automd && oxlint && oxfmt .",
2121
"node-ts": "node --disable-warning=ExperimentalWarning --experimental-strip-types",
2222
"prepack": "pnpm build",
2323
"release": "pnpm test && changelogen --release && npm publish && git push --follow-tags",
@@ -29,13 +29,13 @@
2929
"@vitest/coverage-v8": "^4.1.10",
3030
"automd": "^0.4.3",
3131
"changelogen": "^0.6.2",
32-
"eslint": "^10.8.0",
3332
"eslint-config-unjs": "^0.6.2",
3433
"happy-dom": "^20.11.1",
3534
"jiti": "^2.7.0",
3635
"obuild": "^0.4.38",
37-
"prettier": "^3.9.6",
38-
"typescript": "^6.0.3",
36+
"oxfmt": "^0.60.0",
37+
"oxlint": "^1.75.0",
38+
"typescript": "^7.0.2",
3939
"vitest": "^4.1.10"
4040
},
4141
"packageManager": "pnpm@11.17.0"

0 commit comments

Comments
 (0)