fix(npm): allow resolving from package.json when an import map exists (#17905)

This commit is contained in:
David Sherret 2023-02-23 17:20:23 -05:00 committed by GitHub
parent da781280b8
commit e57b38f8b2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 76 additions and 14 deletions

View file

@ -251,3 +251,13 @@ itest!(package_json_fail_check {
copy_temp_dir: Some("package_json/basic"),
exit_code: 1,
});
itest!(package_json_with_deno_json {
args: "check --quiet main.ts",
output: "package_json/deno_json/main.check.out",
cwd: Some("package_json/deno_json/"),
copy_temp_dir: Some("package_json/deno_json/"),
envs: env_vars_for_npm_tests_no_sync_download(),
http_server: true,
exit_code: 1,
});