-
-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: better algorithm for custom tsconfig paths #345
Conversation
🦋 Changeset detectedLatest commit: c4cd626 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. |
@SukkaW Can I increase the limit to ? {
"name": "./lib/index.js",
"passed": false,
"size": 2855,
"sizeLimit": 2800
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Feel free to increase the size limit on this one since it doesn't increase by much!
@SukkaW Do you also want to add |
Yes, add one as well! |
@SukkaW Done! 🥳 |
| datasource | package | from | to | | ---------- | --------------------------------- | ----- | ----- | | npm | eslint-import-resolver-typescript | 3.7.0 | 3.8.0 | ## [v3.8.0](https://github.com/import-js/eslint-import-resolver-typescript/blob/HEAD/CHANGELOG.md#380) ##### Minor Changes - [#345](import-js/eslint-import-resolver-typescript#345) [`fcc8883`](import-js/eslint-import-resolver-typescript@fcc8883) Thanks [@carlocorradini](https://github.com/carlocorradini)! - Enable the mapper function just for a set of allowed files. Improves project discovery using glob and POSIX separator. - [#346](import-js/eslint-import-resolver-typescript#346) [`c124e87`](import-js/eslint-import-resolver-typescript@c124e87) Thanks [@carlocorradini](https://github.com/carlocorradini)! - Update get-tsconfig to the the latest version. We now support the `${configDir}` variable, introduced in TypeScript 5.5.
| datasource | package | from | to | | ---------- | --------------------------------- | ----- | ----- | | npm | eslint-import-resolver-typescript | 3.7.0 | 3.8.0 | ## [v3.8.0](https://github.com/import-js/eslint-import-resolver-typescript/blob/HEAD/CHANGELOG.md#380) ##### Minor Changes - [#345](import-js/eslint-import-resolver-typescript#345) [`fcc8883`](import-js/eslint-import-resolver-typescript@fcc8883) Thanks [@carlocorradini](https://github.com/carlocorradini)! - Enable the mapper function just for a set of allowed files. Improves project discovery using glob and POSIX separator. - [#346](import-js/eslint-import-resolver-typescript#346) [`c124e87`](import-js/eslint-import-resolver-typescript@c124e87) Thanks [@carlocorradini](https://github.com/carlocorradini)! - Update get-tsconfig to the the latest version. We now support the `${configDir}` variable, introduced in TypeScript 5.5.
Fix #246
Fix #247
Improves the overall algorithm for searching the mapped file when using custom TypeScript paths.
Each mapper now contains two fields:
mapperFn
The mapper function generated by
createPathsMatcher
files
A set of files where it is allowed to execute the
mapperFn
.This resolves a number of issues, the most important of which is that two
tsconfig
files have the same path mapping.One of the most important changes is to handle path separators appropriately:
tinyglobby
pattern must have POSIX separator, otherwiseisDynamicPattern
returns false for some special cases (./packages/*/tsconfig.json
)