Skip to content

Commit c785248

Browse files
committed
ci: debug Windows error
1 parent f75c0e4 commit c785248

File tree

7 files changed

+354
-507
lines changed

7 files changed

+354
-507
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,18 @@ jobs:
1414
strategy:
1515
matrix:
1616
os:
17-
- macos-latest
18-
- ubuntu-latest
17+
# - macos-latest
18+
# - ubuntu-latest
1919
- windows-latest
2020
node:
21-
- 18
22-
- 20
23-
- 22
21+
# - 18
22+
# - 20
23+
# - 22
2424
# https://github.com/nodejs/node/issues/59480
2525
- 24.5
2626
eslint:
27-
- 8.56
28-
- 8
27+
# - 8.56
28+
# - 8
2929
- 9
3030

3131
include:

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
"eslint-import-context": "^0.2.0",
8282
"is-glob": "^4.0.3",
8383
"minimatch": "^9.0.3 || ^10.0.3",
84-
"oxc-resolver": "^11.6.1",
84+
"oxc-resolver": "^11.6.2",
8585
"semver": "^7.7.2",
8686
"stable-hash-x": "^0.2.0"
8787
},
@@ -168,7 +168,8 @@
168168
},
169169
"resolutions": {
170170
"@typescript-eslint/utils": "^8.34.0",
171-
"prettier": "^3.5.3"
171+
"prettier": "^3.5.3",
172+
"unrs-resolver": "npm:oxc-resolver@^11.6.2"
172173
},
173174
"eslintIgnore": [
174175
".yarn",
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
diff --git a/lib/index.js b/lib/index.js
2+
index 377c5e83795338dd22acf9e528de4a73335add99..5617288cb75f35a15c06273e9b7b26c76a963dce 100644
3+
--- a/lib/index.js
4+
+++ b/lib/index.js
5+
@@ -16,7 +16,15 @@ const resolverCache = new Map();
6+
const tsconfigCache = new Map();
7+
const matcherCache = new Map();
8+
const unrsResolve = (source, file, resolver) => {
9+
- const result = resolver.sync(path.dirname(file), source);
10+
+ let result;
11+
+ try {
12+
+ result = resolver.sync(path.dirname(file), source);
13+
+ } catch (err) {
14+
+ log('------------------------------');
15+
+ log(source, file);
16+
+ log('------------------------------');
17+
+ throw err;
18+
+ }
19+
if (result.path) {
20+
return {
21+
found: true,

test/fixtures/yarn-pnp/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,8 @@
1616
"epix-oxc": "link:.",
1717
"eslint": "^9.29.0",
1818
"eslint-plugin-import-x": "link:../../.."
19+
},
20+
"resolutions": {
21+
"unrs-resolver": "npm:oxc-resolver@^11.6.2"
1922
}
2023
}

test/fixtures/yarn-pnp/test-package/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"private": true,
66
"scripts": {
77
"demo": "tsx test.ts",
8-
"lint": "eslint"
8+
"lint": "DEBUG=eslint-import-resolver-typescript eslint"
99
},
1010
"dependencies": {
1111
"nanoid": "^5.1.5"
@@ -15,7 +15,7 @@
1515
"@types/node": "^22.15.32",
1616
"@typescript-eslint/parser": "^8.34.1",
1717
"eslint": "^9.29.0",
18-
"eslint-import-resolver-typescript": "^4.4.3",
18+
"eslint-import-resolver-typescript": "patch:eslint-import-resolver-typescript@npm%3A4.4.3#~/.yarn/patches/eslint-import-resolver-typescript-npm-4.4.3-f982fbc045.patch",
1919
"eslint-plugin-import-x": "link:../../../..",
2020
"globals": "^16.2.0",
2121
"tsx": "^4.20.3",

0 commit comments

Comments
 (0)