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

[pxt] Fix deprecation of "out" option in tsconfigs #9492

Merged
merged 1 commit into from
May 2, 2023

Conversation

eanders-ms
Copy link
Contributor

TypeScript 5.0 deprecates tsconfig's "out" compiler option in favor of "outFile". Even though we don't yet use TS5, VSCode recently started flagging this as an error in some of pxt's tsconfig.json files. This is a fix to remedy that. This change must also be made in all target repos, and pxt-arcade-sim.

Reference: microsoft/TypeScript#51909

@@ -1553,7 +1553,7 @@ function buildFolderAndBrowserifyAsync(p: string, optional?: boolean, outputName

const tsConfig = JSON.parse(fs.readFileSync(path.join(p, "tsconfig.json"), "utf8"));
if (outputName && tsConfig.compilerOptions.outDir !== `../built/${outputName}`) {
U.userError(`${p}/tsconfig.json expected compilerOptions.ourDir:"../built/${outputName}", got "${tsConfig.compilerOptions.outDir}"`);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was this just an old typo?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yep. very old typo :)

@eanders-ms eanders-ms merged commit 3274dac into master May 2, 2023
@eanders-ms eanders-ms deleted the eanders-ms/ts5-deprecations branch May 2, 2023 21:01
jwunderl pushed a commit that referenced this pull request Aug 8, 2023
jwunderl added a commit that referenced this pull request Aug 9, 2023
Co-authored-by: Eric Anderson <eanders@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants