Skip to content

fix(check): write lockfile after type checking#29265

Merged
dsherret merged 2 commits intodenoland:mainfrom
dsherret:fix_lockfile_check
May 12, 2025
Merged

fix(check): write lockfile after type checking#29265
dsherret merged 2 commits intodenoland:mainfrom
dsherret:fix_lockfile_check

Conversation

@dsherret
Copy link
Copy Markdown
Contributor

Type checking might discover npm:@types/node, so write after type checking.

@dsherret dsherret merged commit 1b36304 into denoland:main May 12, 2025
18 checks passed
@dsherret dsherret deleted the fix_lockfile_check branch May 12, 2025 19:31
@dsherret
Copy link
Copy Markdown
Contributor Author

Oh, we were purposefully not doing this in order to prevent churn in the lockfile:

deno/cli/type_checker.rs

Lines 215 to 217 in 1b36304

// node built-in specifiers use the @types/node package to determine
// types, so inject that now (the caller should do this after the lockfile
// has been written)

I'll look into this a bit more.

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