Repository navigation
fix: skip parent tsconfig - #83
Merged
Merged
Conversation
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.
A site in a folder inside another project failed to build. Rolldown found the parent project's
tsconfig.json, which extendedastro/tsconfigs/strict, and stopped with[TSCONFIG_ERROR] ... (bongo.config.ts), before bongo read the config.Changes
loadModule()and the script bundler search for a tsconfig only when the project folder, which holds the config, has atsconfig.json. A search from a file in the project then stops at that file at the latest. Without one, Rolldown uses no tsconfig.data.load()takes the project root. Before, it passed thesrcfolder, which differs from the project with--src. Errors in data modules now name files relative to the project, as for content data modules and partials.typescript.md.Not changed
pathsstill do not apply in the config, data modules, or partials: the packages plugin ofloadModule()marks~/xas an external package first. That is howmainworks, and it is out of scope here.Test plan
bun test(855 pass),bunx tsc -p .,bunx tsc -p build,bun run buildbuild()test fails onmainwithTSCONFIG_ERROR: a project under a folder with a brokentsconfig.json, with a config, a data module, a partial, a content data module, and a scriptloadModule()andflush()still read the project's owntsconfig.json