summaryrefslogtreecommitdiff
path: root/tests/specs/add/add_with_subpath/wrong_constraint_npm.out
diff options
context:
space:
mode:
authorBartek Iwańczuk <biwanczuk@gmail.com>2024-09-04 13:55:30 +0100
committerGitHub <noreply@github.com>2024-09-04 12:55:30 +0000
commitc58a628e2ff449f8cbbdcd6bb8baeaba1ea95a4d (patch)
tree70b96f0826f7ed9067efd39082dff6ca57258d70 /tests/specs/add/add_with_subpath/wrong_constraint_npm.out
parent74fc66da110ec20d12751e7a0922cea300314399 (diff)
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>
Diffstat (limited to 'tests/specs/add/add_with_subpath/wrong_constraint_npm.out')
-rw-r--r--tests/specs/add/add_with_subpath/wrong_constraint_npm.out4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/specs/add/add_with_subpath/wrong_constraint_npm.out b/tests/specs/add/add_with_subpath/wrong_constraint_npm.out
new file mode 100644
index 000000000..4adcf9ef6
--- /dev/null
+++ b/tests/specs/add/add_with_subpath/wrong_constraint_npm.out
@@ -0,0 +1,4 @@
+error: Failed to parse package required: npm:preact/hooks@10
+
+Caused by:
+ Invalid package specifier 'npm:preact/hooks@10'. Did you mean to write 'npm:preact@10/hooks'?