Skip to content

Commit d46b536

Browse files
Update dependency vite-tsconfig-paths to v6 (#28289)
This PR contains the following updates: | Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) | |---|---|---|---| | [vite-tsconfig-paths](https://redirect.github.com/aleclarson/vite-tsconfig-paths) | [`5.1.4` → `6.1.1`](https://renovatebot.com/diffs/npm/vite-tsconfig-paths/5.1.4/6.1.1) | ![age](https://developer.mend.io/api/mc/badges/age/npm/vite-tsconfig-paths/6.1.1?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/vite-tsconfig-paths/5.1.4/6.1.1?slim=true) | --- ### Release Notes <details> <summary>aleclarson/vite-tsconfig-paths (vite-tsconfig-paths)</summary> ### [`v6.1.1`](https://redirect.github.com/aleclarson/vite-tsconfig-paths/compare/v6.1.0...v6.1.1) [Compare Source](https://redirect.github.com/aleclarson/vite-tsconfig-paths/compare/v6.1.0...v6.1.1) ### [`v6.1.0`](https://redirect.github.com/aleclarson/vite-tsconfig-paths/releases/tag/v6.1.0) [Compare Source](https://redirect.github.com/aleclarson/vite-tsconfig-paths/compare/v6.0.5...v6.1.0) ##### Features - **New `importerFilter` option:** Provides fine-grained control over which files should have their imports resolved by this plugin. (Closes [#&#8203;175](https://redirect.github.com/aleclarson/vite-tsconfig-paths/issues/175), [#&#8203;193](https://redirect.github.com/aleclarson/vite-tsconfig-paths/issues/193)) - **Ignore `.d.ts` overrides:** The plugin now ignores resolutions that point to `.d.ts` files, avoiding issues when `tsconfig` is used for opt-in type overrides. (Closes [#&#8203;179](https://redirect.github.com/aleclarson/vite-tsconfig-paths/issues/179), [#&#8203;180](https://redirect.github.com/aleclarson/vite-tsconfig-paths/issues/180)) ##### Performance - Hoisted regular expressions out of the hot path in the resolver for better performance. ##### Internal - Added `resolvedToDeclarationFile` event to the debug log file. ### [`v6.0.5`](https://redirect.github.com/aleclarson/vite-tsconfig-paths/compare/v6.0.4...v6.0.5) [Compare Source](https://redirect.github.com/aleclarson/vite-tsconfig-paths/compare/v6.0.4...v6.0.5) ### [`v6.0.4`](https://redirect.github.com/aleclarson/vite-tsconfig-paths/compare/v6.0.3...v6.0.4) [Compare Source](https://redirect.github.com/aleclarson/vite-tsconfig-paths/compare/v6.0.3...v6.0.4) ### [`v6.0.3`](https://redirect.github.com/aleclarson/vite-tsconfig-paths/compare/v6.0.2...v6.0.3) [Compare Source](https://redirect.github.com/aleclarson/vite-tsconfig-paths/compare/v6.0.2...v6.0.3) ### [`v6.0.2`](https://redirect.github.com/aleclarson/vite-tsconfig-paths/compare/v6.0.1...v6.0.2) [Compare Source](https://redirect.github.com/aleclarson/vite-tsconfig-paths/compare/v6.0.1...v6.0.2) ### [`v6.0.1`](https://redirect.github.com/aleclarson/vite-tsconfig-paths/compare/v6.0.0...v6.0.1) [Compare Source](https://redirect.github.com/aleclarson/vite-tsconfig-paths/compare/v6.0.0...v6.0.1) ### [`v6.0.0`](https://redirect.github.com/aleclarson/vite-tsconfig-paths/releases/tag/v6.0.0) [Compare Source](https://redirect.github.com/aleclarson/vite-tsconfig-paths/compare/v5.1.4...v6.0.0) **Note:** No intentional breaking changes. Major version bump due to extensive internal refactoring; downgrade to v5 if needed. #### Highlights - On-demand tsconfig discovery via `projectDiscovery: "lazy"`, while eager discovery remains the default. - tsconfig/jsconfig files are watched and reloaded automatically in both modes, including during `vite build --watch`. - New `logFile` option for per-import resolution traces (pass `true` for `vite-tsconfig-paths.log` or provide a path). - Support for root `/*` aliases and other absolute-style imports. - Support for `.astro` files when `allowJs`/`loose` is enabled. #### Fixes - More reliable tsconfig watching and resolver refreshes: handles lazy discovery edge cases, recreates resolvers after file changes, tolerates missing directories, and copes better with virtual importers. - Windows path handling now normalizes drive-letter casing to avoid missed matches ([#&#8203;183](https://redirect.github.com/aleclarson/vite-tsconfig-paths/issues/183)). #### Upgrade notes - Install the stable release: `pnpm add -D vite-tsconfig-paths`. - Opt into lazy discovery or logging when needed: ```ts import tsconfigPaths from 'vite-tsconfig-paths' export default { plugins: [ tsconfigPaths({ projectDiscovery: 'lazy', logFile: true, }), ], } ``` - Rooted path patterns such as `"/*": ["src/*"]` now resolve the same way tsserver does. </details> --- ### Configuration 📅 **Schedule**: (in timezone Etc/UTC) - Branch creation - Only on Sunday and Saturday (`* * * * 0,6`) - Between 11:00 PM and 11:59 PM, Monday through Friday (`* 23 * * 1-5`) - Between 12:00 AM and 04:59 AM, Monday through Saturday (`* 0-4 * * 1-6`) - Automerge - Only on Sunday and Saturday (`* * * * 0,6`) - Between 11:00 PM and 11:59 PM, Monday through Friday (`* 23 * * 1-5`) - Between 12:00 AM and 04:59 AM, Monday through Saturday (`* 0-4 * * 1-6`) 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://redirect.github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4yMDUuMyIsInVwZGF0ZWRJblZlciI6IjQzLjIwNS4zIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119--> Co-authored-by: tryghost-renovate[bot] <269725441+tryghost-renovate[bot]@users.noreply.github.com>
1 parent 4c52d99 commit d46b536

2 files changed

Lines changed: 6 additions & 10 deletions

File tree

apps/admin/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
"typescript": "catalog:",
5151
"typescript-eslint": "8.58.0",
5252
"vite": "catalog:",
53-
"vite-tsconfig-paths": "5.1.4",
53+
"vite-tsconfig-paths": "6.1.1",
5454
"vitest": "catalog:"
5555
},
5656
"nx": {

pnpm-lock.yaml

Lines changed: 5 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)