Skip to content

Commit 89c2795

Browse files
JounQinCopilot
andauthored
chore: hoursekeeping, bump all (dev) deps (#413)
Co-authored-by: Copilot <[email protected]> Co-authored-by: Copilot <[email protected]>
1 parent 31e3592 commit 89c2795

File tree

8 files changed

+1236
-1801
lines changed

8 files changed

+1236
-1801
lines changed

.changeset/tiny-ligers-visit.md

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
"eslint-import-resolver-typescript": minor
3+
---
4+
5+
chore: housekeeping, bump all (dev) deps
6+
7+
Migrate `rspack-resolver` to rebranding [`unrs-resolver`](https://github.com/unrs/unrs-resolver) for more targets support and other bug fixes

.simple-git-hooks.cjs

-1
This file was deleted.

.simple-git-hooks.js

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { default } from '@1stg/simple-git-hooks'

.yarnrc.yml

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
compressionLevel: mixed
22

3+
enableTelemetry: false
4+
35
nodeLinker: node-modules
46

57
plugins:

package.json

+11-11
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
"lint:es": "eslint . --cache",
5151
"lint:tsc": "tsc --noEmit",
5252
"prepare": "simple-git-hooks && yarn-berry-deduplicate || exit 0",
53-
"release": "clean-pkg-json && changeset publish",
53+
"release": "clean-pkg-json && changeset publish --tag v3.x",
5454
"test": "run-p 'test:*'",
5555
"test:dotInclude": "yarn eslint --ext ts,tsx tests/dotInclude --ignore-pattern \"!.dot\"",
5656
"test:dotPaths": "yarn eslint --ext ts,tsx tests/dotPaths --ignore-pattern \"!.dot\"",
@@ -84,38 +84,38 @@
8484
"@nolyfill/is-core-module": "1.0.39",
8585
"debug": "^4.4.0",
8686
"get-tsconfig": "^4.10.0",
87-
"is-bun-module": "^1.3.0",
88-
"rspack-resolver": "^1.1.0",
87+
"is-bun-module": "^2.0.0",
8988
"stable-hash": "^0.0.5",
90-
"tinyglobby": "^0.2.12"
89+
"tinyglobby": "^0.2.12",
90+
"unrs-resolver": "^1.3.2"
9191
},
9292
"devDependencies": {
93-
"@1stg/lib-config": "^13.0.1",
93+
"@1stg/common-config": "^11.1.0",
9494
"@changesets/changelog-github": "^0.5.1",
9595
"@changesets/cli": "^2.28.1",
9696
"@commitlint/cli": "^19.8.0",
9797
"@mozilla/glean": "^5.0.3",
98-
"@pkgr/rollup": "^6.0.0",
98+
"@pkgr/rollup": "^6.0.1",
9999
"@total-typescript/ts-reset": "^0.6.1",
100100
"@types/debug": "^4.1.12",
101-
"@types/node": "^22.13.10",
101+
"@types/node": "^22.13.13",
102102
"@types/pnpapi": "^0.0.5",
103103
"@types/unist": "^3.0.3",
104104
"clean-pkg-json": "^1.2.1",
105105
"cross-env": "^7.0.3",
106106
"dummy.js": "link:dummy.js",
107-
"eslint": "^9.22.0",
107+
"eslint": "^9.23.0",
108108
"eslint-import-resolver-typescript": "link:.",
109-
"eslint-plugin-import-x": "^4.8.0",
109+
"eslint-plugin-import-x": "^4.9.3",
110110
"lint-staged": "^15.5.0",
111111
"npm-run-all2": "^7.0.2",
112112
"prettier": "^3.5.3",
113113
"react": "^19.0.0",
114-
"simple-git-hooks": "^2.11.1",
114+
"simple-git-hooks": "^2.12.1",
115115
"size-limit": "^11.2.0",
116116
"size-limit-preset-node-lib": "^0.3.0",
117117
"type-coverage": "^2.29.7",
118-
"type-fest": "^4.37.0",
118+
"type-fest": "^4.38.0",
119119
"typescript": "~5.8.2",
120120
"yarn-berry-deduplicate": "^6.1.1"
121121
},

src/index.ts

+2-6
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,11 @@ import isNodeCoreModule from '@nolyfill/is-core-module'
66
import debug from 'debug'
77
import type { TsConfigResult } from 'get-tsconfig'
88
import { createPathsMatcher, getTsconfig } from 'get-tsconfig'
9-
import type { Version } from 'is-bun-module'
109
import { isBunModule } from 'is-bun-module'
11-
import { type NapiResolveOptions, ResolverFactory } from 'rspack-resolver'
1210
import { stableHash } from 'stable-hash'
1311
import { globSync, isDynamicPattern } from 'tinyglobby'
1412
import type { SetRequired } from 'type-fest'
13+
import { type NapiResolveOptions, ResolverFactory } from 'unrs-resolver'
1514

1615
const IMPORTER_NAME = 'eslint-import-resolver-typescript'
1716

@@ -149,10 +148,7 @@ export function resolve(
149148
source = removeQuerystring(source)
150149

151150
// don't worry about core node/bun modules
152-
if (
153-
isNodeCoreModule(source) ||
154-
isBunModule(source, (process.versions.bun ?? 'latest') as Version)
155-
) {
151+
if (isNodeCoreModule(source) || isBunModule(source)) {
156152
log('matched core:', source)
157153

158154
return {

tests/importXResolverV3/eslint.config.cjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const absoluteGlobPath = path.join(__dirname, globPattern)
1313
const base = require('../base.eslintrc.cjs')()
1414

1515
module.exports =
16-
// eslint-disable-next-line no-magic-numbers -- don't run on node 16 because lacking of `structuredClone`
16+
// don't run on node 16 because lacking of `structuredClone`
1717
+process.versions.node.split('.')[0] <= 16
1818
? {}
1919
: {

0 commit comments

Comments
 (0)