1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-01-07 22:58:24 -05:00
denoland-deno/tests/specs/add/add_with_subpath/__test__.jsonc
Bartek Iwańczuk c58a628e2f
feat(add): strip package subpath when adding a package (#25419)
These now works:
```
$ deno add @std/dotenv/load
$ deno add npm:preact/hooks
```
Previously we were erroring out, because this is a "package reference"
including
a subpath.

Closes https://github.com/denoland/deno/issues/25385

---------

Signed-off-by: Bartek Iwańczuk <biwanczuk@gmail.com>
Co-authored-by: David Sherret <dsherret@users.noreply.github.com>
2024-09-04 12:55:30 +00:00

19 lines
388 B
Text

{
"tempDir": true,
"steps": [
{
"args": "add @std/testing/bdd npm:preact/hooks",
"output": "add.out"
},
{
"args": "add @std/testing/bdd@1 npm:preact/hooks@10",
"output": "wrong_constraint_jsr.out",
"exitCode": 1
},
{
"args": "add npm:preact/hooks@10",
"output": "wrong_constraint_npm.out",
"exitCode": 1
}
]
}