Skip to content

fix(deps): remove or type last remaining untyped deps #7211

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

Merged

Conversation

serhalp
Copy link
Collaborator

@serhalp serhalp commented Apr 15, 2025

Summary

10b297c add type declaration files for untyped maxstache and maxstache-stream

563e0b4 add type declaration for untyped express-logging

There's also #7050 that removes it entirely, but I don't want to be blocked on this to continue improving type safety.

fe8e4a0 remove untyped strip-ansi-control-characters dep

stripVTControlCharacters was added in 16.11.0 (we support >+18.14.0), so we don't need this tiny transform stream wrapper anyway

1049c9a fix types and eslint errors in utils/shell.ts

@@ -56,9 +52,7 @@ async function writeFile(outDir: string, vars: Record<string, string>, file: Ent
}

// High throughput template dir writes
export async function copyTemplateDir(srcDir: string, outDir: string, vars: any): Promise<string[]> {
if (!vars) vars = noop
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

there's only one caller and it always passes this in

Copy link

github-actions bot commented Apr 15, 2025

📊 Benchmark results

Comparing with 5fd9add

  • Dependency count: 1,156 ⬇️ 0.09% decrease vs. 5fd9add
  • Package size: 281 MB ⬇️ 0.01% decrease vs. 5fd9add
  • Number of ts-expect-error directives: 402 ⬇️ 2.49% decrease vs. 5fd9add

@serhalp serhalp force-pushed the serhalp/cpla-2572-add-type-declarations-for-all-npm-dependencies branch 3 times, most recently from e84b6c0 to 1049c9a Compare April 15, 2025 21:50
@serhalp serhalp marked this pull request as ready for review April 15, 2025 21:58
@serhalp serhalp requested a review from a team as a code owner April 15, 2025 21:58
@serhalp serhalp force-pushed the serhalp/cpla-2572-add-type-declarations-for-all-npm-dependencies branch from 1049c9a to 571215a Compare April 16, 2025 12:19
@serhalp serhalp enabled auto-merge (squash) April 16, 2025 12:19
@serhalp serhalp merged commit a59c66f into main Apr 16, 2025
52 checks passed
@serhalp serhalp deleted the serhalp/cpla-2572-add-type-declarations-for-all-npm-dependencies branch April 16, 2025 13:05
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.

2 participants