fix(npm): using types for packages with subpath (#16656)

For CommonJS packages we were not trying different extensions for files
specified as subpath of the package ([package_name]/[subpath]). 
This commit fixes that.
This commit is contained in:
Bartek Iwańczuk 2022-11-16 20:41:27 +01:00 committed by GitHub
parent bd159b8bad
commit 1416713cb3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 137 additions and 31 deletions

View file

@ -266,6 +266,14 @@ itest!(check_local {
exit_code: 1,
});
itest!(types {
args: "check --quiet npm/types/main.ts",
output: "npm/types/main.out",
envs: env_vars(),
http_server: true,
exit_code: 1,
});
itest!(types_ambient_module {
args: "check --quiet npm/types_ambient_module/main.ts",
output: "npm/types_ambient_module/main.out",