Repository navigation
chore: drop deprecated baseUrl from tsconfig - #752
Merged
Merged
Conversation
TypeScript 6 rejects the baseUrl option (TS5101), which fails the build on the Dependabot TypeScript 6.0.3 bump (#738). Remove baseUrl and make the @/* path target explicitly relative, which behaves the same on TypeScript 5.9 and 6. The remix tutorial page was the only thing resolving through baseUrl: its five images used bare src/images/... paths. Switch them to relative paths like the other MDX pages.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
baseUrlfromtsconfig.jsonand make the@/*path target explicitly relative (./src/*).src/images/...paths to relative paths, matching the other MDX pages.Why
TypeScript 6 rejects
baseUrl(TS5101: Option 'baseUrl' is deprecated), which fails the build on the Dependabot TypeScript 6.0.3 bump in #738. This change is valid on TypeScript 5.9 as well, so it can land first and unblock that PR.The Remix tutorial was the only thing in the repo resolving through
baseUrl; every other non-package import already uses the@/alias or a relative path.Verification
pnpm run build,lint:jsandlint:mdxpass on TypeScript 5.9.3 (currentmain).pnpm run buildandlint:jspass with this change applied on top of the chore(deps-dev): bump typescript from 5.9.3 to 6.0.3 #738 branch (TypeScript 6.0.3).