This repository has been archived by the owner on May 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 35
Tsconfig from parent is used when building Functions from a subdirectory. #988
Labels
type: bug
code to address defects in shipped code
Comments
Hi @redmagic, Thanks for reporting this. |
|
For some more context, I am trying to migrate to a monorepo where the api folder has only a functions deploy. When I import dependencies from outside the subdirecty, they cannot locate their dependencies, but I will file a separate issue for that, or try Yarn workspaces first. |
Interesting, this is happening during Functions bundling. I am transferring this bug to @eduardoboucas @netlify-team-account-1 What are your thoughts on this? |
ehmicky
changed the title
Tsconfig from parent is used when building from a subdirectory.
Tsconfig from parent is used when building Functions from a subdirectory.
Jan 31, 2022
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
When building from a subdirectory containing a tsconfig file, the build process seems to parse the tsconfig file from the root directory as well, referring to it as
../tsconfig.json
.I would expect the build in the subdirectory not to scan parent directories.
Configuration
toml from subdirectory
typescript config from subdirectory (NB no extend from the parent directory is used)
Running netlify dev gives no errors, the UI does
Deploy logs
https://app.netlify.com/sites/thuisuitetenapi/deploys/61f7c4c432c30b0008c833a9
The text was updated successfully, but these errors were encountered: