fix(npm/types): resolve main entrypoint declaration file when no types entry (#16791)

Closes #16782
This commit is contained in:
David Sherret 2022-11-24 13:13:51 -05:00 committed by GitHub
parent fd023cf793
commit 823a5f6015
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 43 additions and 13 deletions

View file

@ -306,6 +306,14 @@ itest!(types_entry_value_not_exists {
exit_code: 0,
});
itest!(types_no_types_entry {
args: "run --check=all npm/types_no_types_entry/main.ts",
output: "npm/types_no_types_entry/main.out",
envs: env_vars(),
http_server: true,
exit_code: 0,
});
#[test]
fn parallel_downloading() {
let (out, _err) = util::run_and_collect_output_with_args(