Skip to content

Conversation

@carlansley
Copy link
Contributor

@carlansley carlansley commented Jan 29, 2025

Other than the obvious (updating to TypeScript 5.8), the following changes were made:

  • Turn on erasableSyntaxOnly
  • Turn off libReplacement
  • Turn on noUncheckedSideEffectImports
  • Fix tests involving esbuild where there was a difference in behavior between macOS and Linux
  • Eliminate jest, only use node:test runner

@carlansley carlansley self-assigned this Jan 29, 2025
@carlansley
Copy link
Contributor Author

Requires typescript-eslint/typescript-eslint#10884 to be resolved before publishing.

@carlansley carlansley requested review from le-cong and ramaghanta March 3, 2025 18:19
Copy link
Contributor

@ramaghanta ramaghanta left a comment

Choose a reason for hiding this comment

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

lftm

Copy link

@le-cong le-cong left a comment

Choose a reason for hiding this comment

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

lgtm other than a few very minor things.

somehow i'm seeing this in my vscode, everything works including testing, this may be sth we can ignore?
image


const exportDefaultFunctionModule = {
[`index.ts`]: `export default function () { return 'hello world' }\n`,
[`export-default=function-module.ts`]: `export default function () { return 'hello world' }\n`,
Copy link

Choose a reason for hiding this comment

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

is this meant to be export-default-function-module?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

regarding the VSCode thing, moduleResolution is set to bundler and there is no change to this vs the prior version. Not sure why this wasn't an error before. Regardless, I can't think of a reason not to just set noEmit to true, since we never generate code using tsc directly. Try this out, hopefully makes VSCode happy.

@carlansley carlansley requested a review from le-cong March 3, 2025 20:27
@github-actions
Copy link

github-actions bot commented Mar 3, 2025

Beta Published - Install Command: npm install @checkdigit/typescript-config@9.1.0-PR.71-6d62

@github-actions
Copy link

github-actions bot commented Mar 3, 2025

✅ PR review status - All reviews completed and approved!

@carlansley carlansley merged commit f85e151 into main Mar 3, 2025
8 of 9 checks passed
@carlansley carlansley deleted the typescript-5.8 branch March 3, 2025 20:42
@carlansley carlansley mentioned this pull request Mar 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants