Skip to content

Commit 0816c8c

Browse files
committed
chore: add test case for #409
1 parent 5588948 commit 0816c8c

File tree

14 files changed

+421
-359
lines changed

14 files changed

+421
-359
lines changed

Diff for: .codesandbox/ci.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
{
22
"node": "18",
3-
"sandboxes": []
3+
"sandboxes": [],
4+
"packages": [
5+
"."
6+
]
47
}

Diff for: .github/workflows/release.yml

+1
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,5 @@ jobs:
4343
title: 'chore: release eslint-import-resolver-typescript'
4444
env:
4545
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
46+
NPM_CONFIG_PROVENANCE: true
4647
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

Diff for: .nvmrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
18.20.7
1+
18.20.8

Diff for: .yarn/releases/yarn-4.7.0.cjs renamed to .yarn/releases/yarn-4.8.0.cjs

+331-331
Large diffs are not rendered by default.

Diff for: .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.8.0.cjs

Diff for: README.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -332,15 +332,15 @@ If either fails, we won't be able to merge your PR until it's fixed.
332332

333333
## Sponsors
334334

335-
| 1stG | RxTS | UnTS |
336-
| ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- |
337-
| [![1stG Open Collective backers and sponsors](https://opencollective.com/1stG/organizations.svg)](https://opencollective.com/1stG) | [![RxTS Open Collective backers and sponsors](https://opencollective.com/rxts/organizations.svg)](https://opencollective.com/rxts) | [![UnTS Open Collective backers and sponsors](https://opencollective.com/unts/organizations.svg)](https://opencollective.com/unts) |
335+
| 1stG | RxTS | UnTS |
336+
| ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- |
337+
| [![1stG Open Collective sponsors](https://opencollective.com/1stG/organizations.svg)](https://opencollective.com/1stG) | [![RxTS Open Collective sponsors](https://opencollective.com/rxts/organizations.svg)](https://opencollective.com/rxts) | [![UnTS Open Collective sponsors](https://opencollective.com/unts/organizations.svg)](https://opencollective.com/unts) |
338338

339339
## Backers
340340

341-
| 1stG | RxTS | UnTS |
342-
| -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- |
343-
| [![1stG Open Collective backers and sponsors](https://opencollective.com/1stG/individuals.svg)](https://opencollective.com/1stG) | [![RxTS Open Collective backers and sponsors](https://opencollective.com/rxts/individuals.svg)](https://opencollective.com/rxts) | [![UnTS Open Collective backers and sponsors](https://opencollective.com/unts/individuals.svg)](https://opencollective.com/unts) |
341+
| 1stG | RxTS | UnTS |
342+
| ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- |
343+
| [![1stG Open Collective backers](https://opencollective.com/1stG/individuals.svg)](https://opencollective.com/1stG) | [![RxTS Open Collective backers](https://opencollective.com/rxts/individuals.svg)](https://opencollective.com/rxts) | [![UnTS Open Collective backers](https://opencollective.com/unts/individuals.svg)](https://opencollective.com/unts) |
344344

345345
## Changelog
346346

Diff for: package.json

+9-4
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,13 @@
88
"contributors": [
99
"JounQin <[email protected]> (https://www.1stG.me)"
1010
],
11-
"funding": "https://opencollective.com/unts/projects/eslint-import-resolver-ts",
11+
"funding": "https://opencollective.com/eslint-import-resolver-typescript",
1212
"license": "ISC",
13-
"packageManager": "[email protected]",
13+
"workspaces": [
14+
".",
15+
"tests/nestedPackageJson"
16+
],
17+
"packageManager": "[email protected]",
1418
"engines": {
1519
"node": "^16.17.0 || >=18.6.0"
1620
},
@@ -55,6 +59,7 @@
5559
"test:multipleEslintrcs": "yarn eslint --ext ts,tsx tests/multipleEslintrcs",
5660
"test:multipleTsconfigs": "yarn eslint --ext ts,tsx tests/multipleTsconfigs",
5761
"test:nearestTsconfig": "yarn eslint --ext ts,tsx tests/nearestTsconfig",
62+
"test:nestedPackageJson": "yarn eslint --ext ts,tsx tests/nestedPackageJson",
5863
"test:unit": "vitest --run",
5964
"test:withJsExtension": "node tests/withJsExtension/test.js && yarn eslint --ext ts,tsx tests/withJsExtension",
6065
"test:withJsconfig": "yarn eslint --ext js tests/withJsconfig",
@@ -94,7 +99,7 @@
9499
"@pkgr/rollup": "^6.0.1",
95100
"@total-typescript/ts-reset": "^0.6.1",
96101
"@types/debug": "^4.1.12",
97-
"@types/node": "^22.13.13",
102+
"@types/node": "^22.13.14",
98103
"@types/pnpapi": "^0.0.5",
99104
"@types/unist": "^3.0.3",
100105
"@vitest/coverage-v8": "3.0.9",
@@ -111,7 +116,7 @@
111116
"simple-git-hooks": "^2.12.1",
112117
"size-limit": "^11.2.0",
113118
"size-limit-preset-node-lib": "^0.3.0",
114-
"tinyexec": "^1.0.0",
119+
"tinyexec": "^1.0.1",
115120
"type-coverage": "^2.29.7",
116121
"typescript": "~5.8.2",
117122
"vitest": "^3.0.9",

Diff for: tests/base.eslintrc.cjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* @import {TSESLint} from '@typescript-eslint/utils'
3-
* @param {string} project
3+
* @param {string | string[]} project
44
* @returns {TSESLint.ClassicConfig.Config}
55
*/
66
const base = project => ({

Diff for: tests/nestedPackageJson/.eslintrc.cjs

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
const path = require('node:path')
2+
3+
module.exports = require('../base.eslintrc.cjs')(
4+
path.resolve(__dirname, 'tsconfig.json'),
5+
)

Diff for: tests/nestedPackageJson/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.yarn/*

Diff for: tests/nestedPackageJson/package.json

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"name": "nested-package-json",
3+
"version": "1.0.0",
4+
"private": true,
5+
"devDependencies": {
6+
"@atlaskit/pragmatic-drag-and-drop": "^1.5.2"
7+
}
8+
}

Diff for: tests/nestedPackageJson/test.ts

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { combine } from '@atlaskit/pragmatic-drag-and-drop/combine'

Diff for: tests/nestedPackageJson/tsconfig.json

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"compilerOptions": {
3+
"module": "Node16"
4+
}
5+
}

Diff for: yarn.lock

+47-14
Original file line numberDiff line numberDiff line change
@@ -362,6 +362,17 @@ __metadata:
362362
languageName: node
363363
linkType: hard
364364

365+
"@atlaskit/pragmatic-drag-and-drop@npm:^1.5.2":
366+
version: 1.5.2
367+
resolution: "@atlaskit/pragmatic-drag-and-drop@npm:1.5.2"
368+
dependencies:
369+
"@babel/runtime": "npm:^7.0.0"
370+
bind-event-listener: "npm:^3.0.0"
371+
raf-schd: "npm:^4.0.3"
372+
checksum: 10/85009e9f819e8a6431632f4eff83b5f5928c708f51730d22590585600e000d26686cb03bb7a8e89a4f838e8d631786d81d82c71620f5c6d5d33ca51a205010c8
373+
languageName: node
374+
linkType: hard
375+
365376
"@babel/code-frame@npm:^7.0.0, @babel/code-frame@npm:^7.21.4, @babel/code-frame@npm:^7.22.13, @babel/code-frame@npm:^7.26.2":
366377
version: 7.26.2
367378
resolution: "@babel/code-frame@npm:7.26.2"
@@ -1821,12 +1832,12 @@ __metadata:
18211832
languageName: node
18221833
linkType: hard
18231834

1824-
"@babel/runtime@npm:^7.5.5, @babel/runtime@npm:^7.8.4":
1825-
version: 7.26.10
1826-
resolution: "@babel/runtime@npm:7.26.10"
1835+
"@babel/runtime@npm:^7.0.0, @babel/runtime@npm:^7.5.5, @babel/runtime@npm:^7.8.4":
1836+
version: 7.27.0
1837+
resolution: "@babel/runtime@npm:7.27.0"
18271838
dependencies:
18281839
regenerator-runtime: "npm:^0.14.0"
1829-
checksum: 10/9d7ff8e96abe3791047c1138789c742411e3ef19c4d7ca18ce916f83cec92c06ec5dc64401759f6dd1e377cf8a01bbd2c62e033eb7550f435cf6579768d0d4a5
1840+
checksum: 10/e6966e03b695feb4c0ac0856a4355231c2580bf9ebd0298f47739f85c0ea658679dd84409daf26378d42c86c1cbe7e33feab709b14e784254b6c441d91606465
18301841
languageName: node
18311842
linkType: hard
18321843

@@ -3911,12 +3922,12 @@ __metadata:
39113922
languageName: node
39123923
linkType: hard
39133924

3914-
"@types/node@npm:*, @types/node@npm:^22.0.0, @types/node@npm:^22.13.13":
3915-
version: 22.13.13
3916-
resolution: "@types/node@npm:22.13.13"
3925+
"@types/node@npm:*, @types/node@npm:^22.0.0, @types/node@npm:^22.13.14":
3926+
version: 22.13.14
3927+
resolution: "@types/node@npm:22.13.14"
39173928
dependencies:
39183929
undici-types: "npm:~6.20.0"
3919-
checksum: 10/1750518a26fe070dcd4aacd9869d8c72c5b315e3b2fc643e3604fa02b3adac2817eae7808ae34c6bdd6ac96bb5d25acea59656c4ac155b1ee47469a65d32eba4
3930+
checksum: 10/5fafad441c7bb27f963aa8fdfa0787ffb1142b27f4dd2047a2cc27a39f981b432acc71a9b5a428a258f93daeb72f12b7468ab9163a41fe4f98584bc5d42ade6e
39203931
languageName: node
39213932
linkType: hard
39223933

@@ -5168,6 +5179,13 @@ __metadata:
51685179
languageName: node
51695180
linkType: hard
51705181

5182+
"bind-event-listener@npm:^3.0.0":
5183+
version: 3.0.0
5184+
resolution: "bind-event-listener@npm:3.0.0"
5185+
checksum: 10/3d442307ee906b79f041433b065e7b259bd1e5231a74519271cc5beb485f7c469609da9c7f20fdd0b3ab340e4691fee826b76d003c71cf5ad955186aba5c256e
5186+
languageName: node
5187+
linkType: hard
5188+
51715189
"birecord@npm:^0.1.1":
51725190
version: 0.1.1
51735191
resolution: "birecord@npm:0.1.1"
@@ -6638,7 +6656,7 @@ __metadata:
66386656
"@pkgr/rollup": "npm:^6.0.1"
66396657
"@total-typescript/ts-reset": "npm:^0.6.1"
66406658
"@types/debug": "npm:^4.1.12"
6641-
"@types/node": "npm:^22.13.13"
6659+
"@types/node": "npm:^22.13.14"
66426660
"@types/pnpapi": "npm:^0.0.5"
66436661
"@types/unist": "npm:^3.0.3"
66446662
"@vitest/coverage-v8": "npm:3.0.9"
@@ -6659,7 +6677,7 @@ __metadata:
66596677
size-limit: "npm:^11.2.0"
66606678
size-limit-preset-node-lib: "npm:^0.3.0"
66616679
stable-hash: "npm:^0.0.5"
6662-
tinyexec: "npm:^1.0.0"
6680+
tinyexec: "npm:^1.0.1"
66636681
tinyglobby: "npm:^0.2.12"
66646682
type-coverage: "npm:^2.29.7"
66656683
typescript: "npm:~5.8.2"
@@ -10736,6 +10754,14 @@ __metadata:
1073610754
languageName: node
1073710755
linkType: hard
1073810756

10757+
"nested-package-json@workspace:tests/nestedPackageJson":
10758+
version: 0.0.0-use.local
10759+
resolution: "nested-package-json@workspace:tests/nestedPackageJson"
10760+
dependencies:
10761+
"@atlaskit/pragmatic-drag-and-drop": "npm:^1.5.2"
10762+
languageName: unknown
10763+
linkType: soft
10764+
1073910765
"next-tick@npm:^1.1.0":
1074010766
version: 1.1.0
1074110767
resolution: "next-tick@npm:1.1.0"
@@ -11662,6 +11688,13 @@ __metadata:
1166211688
languageName: node
1166311689
linkType: hard
1166411690

11691+
"raf-schd@npm:^4.0.3":
11692+
version: 4.0.3
11693+
resolution: "raf-schd@npm:4.0.3"
11694+
checksum: 10/45514041c5ad31fa96aef3bb3c572a843b92da2f2cd1cb4a47c9ad58e48761d3a4126e18daa32b2bfa0bc2551a42d8f324a0e40e536cb656969929602b4e8b58
11695+
languageName: node
11696+
linkType: hard
11697+
1166511698
"react@npm:^19.0.0":
1166611699
version: 19.0.0
1166711700
resolution: "react@npm:19.0.0"
@@ -13868,10 +13901,10 @@ __metadata:
1386813901
languageName: node
1386913902
linkType: hard
1387013903

13871-
"tinyexec@npm:^1.0.0":
13872-
version: 1.0.0
13873-
resolution: "tinyexec@npm:1.0.0"
13874-
checksum: 10/2c3e8c6351380d80621f75eae722a25d46a08a993924d2238533185a7cb5e55bfbaf41f1742d2d80df45177a42a9549827b208ac902bb0ef87cff7454686d413
13904+
"tinyexec@npm:^1.0.1":
13905+
version: 1.0.1
13906+
resolution: "tinyexec@npm:1.0.1"
13907+
checksum: 10/1f3c3281912d4ab168e067baf46627bb85a803eba0bcea113bba9fe8bdfdcc279cad08052a600d4b8fb603dd57e1af0c500e50a5e7e6b29b2574c88556f41fa6
1387513908
languageName: node
1387613909
linkType: hard
1387713910

0 commit comments

Comments
 (0)