Skip to content
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

fix: Pass tsconfig path to typescript parseJsonConfigFileContent #495

Merged
merged 11 commits into from
Sep 29, 2022
5 changes: 5 additions & 0 deletions .changeset/hip-flies-dance.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@preconstruct/cli": patch
---

Pass config file path to typescript so relative paths are applied to correct directory
emmatown marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ async function nonMemoizedGetProgram(typescript: TS, configFileName: string) {
let thing = typescript.parseJsonConfigFileContent(
result.config,
typescript.sys,
process.cwd(),
path.dirname(configFileName),
undefined,
configFileName
);
Expand Down