mirror of
https://github.com/denoland/deno.git
synced 2025-08-03 18:38:33 +00:00
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:
parent
bd159b8bad
commit
1416713cb3
11 changed files with 137 additions and 31 deletions
|
@ -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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue