Skip to content

Commit c1d64c3

Browse files
authored
chore: bump all (dev) deps (#439)
1 parent a642b2d commit c1d64c3

File tree

12 files changed

+2110
-3025
lines changed

12 files changed

+2110
-3025
lines changed

.changeset/few-ducks-sniff.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"eslint-import-resolver-typescript": patch
3+
---
4+
5+
chore: bump `unrs-resolver` to v1.6.2

.github/workflows/ci.yml

+2-6
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ jobs:
1414
strategy:
1515
matrix:
1616
node:
17-
- 16
1817
- 18
1918
- 20
2019
- 22
@@ -24,10 +23,9 @@ jobs:
2423
- macos-latest
2524
fail-fast: false
2625
runs-on: ${{ matrix.os }}
27-
env:
28-
YARN_IGNORE_NODE: 1
2926
steps:
30-
- uses: actions/checkout@v4
27+
- name: Checkout Repo
28+
uses: actions/checkout@v4
3129

3230
- name: Setup Node.js ${{ matrix.node }}
3331
uses: actions/setup-node@v4
@@ -41,9 +39,7 @@ jobs:
4139
- name: Build and Typecov
4240
run: yarn run-s build typecov
4341
env:
44-
EFF_NO_LINK_RULES: true
4542
PARSER_NO_WATCH: true
4643

4744
- name: Lint and Test
48-
if: ${{ matrix.node != 16}}
4945
run: yarn run-s lint test

.github/workflows/codeql.yml

-50
This file was deleted.

.lintstagedrc.js

-1
This file was deleted.

.nano-staged.js

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { default } from '@1stg/nano-staged/tsc'

.size-limit.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[
22
{
33
"path": "./lib/index.js",
4-
"limit": "3.1kB"
4+
"limit": "1.5kB"
55
}
66
]

.yarn/releases/yarn-4.7.0.cjs

-935
This file was deleted.

.yarn/releases/yarn-4.9.1.cjs

+948
Large diffs are not rendered by default.

.yarnrc.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ plugins:
99
path: .yarn/plugins/plugin-prepare-lifecycle.cjs
1010
spec: 'https://github.com/un-es/yarn-plugin-prepare-lifecycle/releases/download/v0.0.1/index.js'
1111

12-
yarnPath: .yarn/releases/yarn-4.7.0.cjs
12+
yarnPath: .yarn/releases/yarn-4.9.1.cjs

package.json

+17-17
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,12 @@
1010
],
1111
"funding": "https://opencollective.com/eslint-import-resolver-typescript",
1212
"license": "ISC",
13-
"packageManager": "yarn@4.7.0",
13+
"packageManager": "yarn@4.9.1",
1414
"engines": {
1515
"node": "^14.18.0 || >=16.0.0"
1616
},
1717
"main": "lib/index.cjs",
18+
"types": "lib/index.d.ts",
1819
"module": "lib/index.js",
1920
"exports": {
2021
".": {
@@ -28,7 +29,6 @@
2829
},
2930
"es2020": "lib/index.es2020.mjs",
3031
"fesm2020": "lib/index.es2020.mjs",
31-
"types": "lib/index.d.ts",
3232
"files": [
3333
"lib",
3434
"shim.d.ts",
@@ -86,38 +86,38 @@
8686
"get-tsconfig": "^4.10.0",
8787
"is-bun-module": "^2.0.0",
8888
"stable-hash": "^0.0.5",
89-
"tinyglobby": "^0.2.12",
90-
"unrs-resolver": "^1.3.2"
89+
"tinyglobby": "^0.2.13",
90+
"unrs-resolver": "^1.6.2"
9191
},
9292
"devDependencies": {
93-
"@1stg/common-config": "^11.1.0",
93+
"@1stg/common-config": "^13.0.1",
9494
"@changesets/changelog-github": "^0.5.1",
95-
"@changesets/cli": "^2.28.1",
95+
"@changesets/cli": "^2.29.2",
9696
"@commitlint/cli": "^19.8.0",
97-
"@mozilla/glean": "^5.0.3",
98-
"@pkgr/rollup": "^6.0.1",
97+
"@mozilla/glean": "^5.0.4",
98+
"@pkgr/rollup": "^6.0.3",
9999
"@total-typescript/ts-reset": "^0.6.1",
100100
"@types/debug": "^4.1.12",
101-
"@types/node": "^22.13.13",
101+
"@types/node": "^22.14.1",
102102
"@types/pnpapi": "^0.0.5",
103103
"@types/unist": "^3.0.3",
104-
"clean-pkg-json": "^1.2.1",
104+
"clean-pkg-json": "^1.3.0",
105105
"cross-env": "^7.0.3",
106106
"dummy.js": "link:dummy.js",
107-
"eslint": "^9.23.0",
107+
"eslint": "^9.25.0",
108108
"eslint-import-resolver-typescript": "link:.",
109-
"eslint-plugin-import-x": "^4.9.3",
110-
"lint-staged": "^15.5.0",
109+
"eslint-plugin-import-x": "^4.10.6",
110+
"nano-staged": "^0.8.0",
111111
"npm-run-all2": "^7.0.2",
112112
"prettier": "^3.5.3",
113-
"react": "^19.0.0",
113+
"react": "^19.1.0",
114114
"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.38.0",
119-
"typescript": "~5.8.2",
120-
"yarn-berry-deduplicate": "^6.1.1"
118+
"type-fest": "^4.40.0",
119+
"typescript": "~5.8.3",
120+
"yarn-berry-deduplicate": "^6.1.3"
121121
},
122122
"resolutions": {
123123
"eslint-import-resolver-typescript": "link:.",

src/index.ts

+20-15
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ export const defaultConditionNames = [
3333
]
3434

3535
/**
36-
* `.mts`, `.cts`, `.d.mts`, `.d.cts`, `.mjs`, `.cjs` are not included because `.cjs` and `.mjs` must be used explicitly
36+
* `.mts`, `.cts`, `.d.mts`, `.d.cts`, `.mjs`, `.cjs` are not included because
37+
* `.cjs` and `.mjs` must be used explicitly
3738
*/
3839
export const defaultExtensions = [
3940
'.ts',
@@ -107,8 +108,8 @@ let resolverCachedOptions: InternalResolverOptions
107108
let cachedResolver: ResolverFactory | undefined
108109

109110
/**
110-
* @param source the module to resolve; i.e './some-module'
111-
* @param file the importing file's full path; i.e. '/usr/local/bin/file.js'
111+
* @param source The module to resolve; i.e './some-module'
112+
* @param file The importing file's full path; i.e. '/usr/local/bin/file.js'
112113
* @param options
113114
*/
114115
// eslint-disable-next-line sonarjs/cognitive-complexity
@@ -157,9 +158,7 @@ export function resolve(
157158
}
158159
}
159160

160-
/**
161-
* {@link https://github.com/webpack/enhanced-resolve/blob/38e9fd9acb79643a70e7bcd0d85dabc600ea321f/lib/PnpPlugin.js#L81-L83}
162-
*/
161+
/** {@link https://github.com/webpack/enhanced-resolve/blob/38e9fd9acb79643a70e7bcd0d85dabc600ea321f/lib/PnpPlugin.js#L81-L83} */
163162
if (process.versions.pnp && source === 'pnpapi') {
164163
return {
165164
found: true,
@@ -273,10 +272,11 @@ const isModule = (modulePath?: string): modulePath is string =>
273272
!!modulePath && isFile(path.resolve(modulePath, 'package.json'))
274273

275274
/**
276-
* @param {string} source the module to resolve; i.e './some-module'
277-
* @param {string} file the importing file's full path; i.e. '/usr/local/bin/file.js'
278-
* @param {string[]} extensions the extensions to try
279-
* @param {boolean} retry should retry on failed to resolve
275+
* @param {string} source The module to resolve; i.e './some-module'
276+
* @param {string} file The importing file's full path; i.e.
277+
* '/usr/local/bin/file.js'
278+
* @param {string[]} extensions The extensions to try
279+
* @param {boolean} retry Should retry on failed to resolve
280280
* @returns The mapped path of the module or undefined
281281
*/
282282
// eslint-disable-next-line sonarjs/cognitive-complexity
@@ -328,9 +328,12 @@ function getMappedPaths(
328328
.filter(mappedPath => {
329329
try {
330330
const stat = fs.statSync(mappedPath, { throwIfNoEntry: false })
331-
if (stat === undefined) return false
332-
if (stat.isFile()) return true
333-
331+
if (stat === undefined) {
332+
return false
333+
}
334+
if (stat.isFile()) {
335+
return true
336+
}
334337
// Maybe this is a module dir?
335338
if (stat.isDirectory()) {
336339
return isModule(mappedPath)
@@ -500,7 +503,8 @@ function initMappers(options: InternalResolverOptions) {
500503
}
501504

502505
/**
503-
* For a scoped package, we must look in `@types/foo__bar` instead of `@types/@foo/bar`.
506+
* For a scoped package, we must look in `@types/foo__bar` instead of
507+
* `@types/@foo/bar`.
504508
*/
505509
function mangleScopedPackage(moduleName: string) {
506510
if (moduleName.startsWith('@')) {
@@ -543,7 +547,8 @@ function toNativePathSeparator(p: string) {
543547
}
544548

545549
/**
546-
* Counts how many characters in strings `a` and `b` are exactly the same and in the same position.
550+
* Counts how many characters in strings `a` and `b` are exactly the same and in
551+
* the same position.
547552
*
548553
* @param {string} a First string
549554
* @param {string} b Second string

0 commit comments

Comments
 (0)