summaryrefslogtreecommitdiff
path: root/tests/registry
diff options
context:
space:
mode:
authorNathan Whitaker <17734409+nathanwhit@users.noreply.github.com>2024-09-24 18:10:01 -0700
committerGitHub <noreply@github.com>2024-09-25 01:10:01 +0000
commit5c40b47629bc83b9120019b77b34ced5eaabcffe (patch)
tree019d8007267d916e9f8aa09cf6e8d007b7cfa373 /tests/registry
parent6c26c1ed96da2fc869bddbfdbdc833f176f3f736 (diff)
fix(add/install): default to "latest" tag for npm packages in `deno add npm:pkg` (#25858)
Fixes #25813. I initially tried doing this in `deno_semver`, where it's a cleaner change, but that caused breakage in deno in places where we don't expect a tag (see https://github.com/denoland/deno/issues/25857). This does not fix wildcard requirements failing to choose pre-release versions. That's a little more involved and I'll do a separate PR.
Diffstat (limited to 'tests/registry')
-rw-r--r--tests/registry/npm/@denotest/unstable/1.0.0-beta.1/index.js3
-rw-r--r--tests/registry/npm/@denotest/unstable/1.0.0-beta.1/package.json5
2 files changed, 8 insertions, 0 deletions
diff --git a/tests/registry/npm/@denotest/unstable/1.0.0-beta.1/index.js b/tests/registry/npm/@denotest/unstable/1.0.0-beta.1/index.js
new file mode 100644
index 000000000..ba330abd5
--- /dev/null
+++ b/tests/registry/npm/@denotest/unstable/1.0.0-beta.1/index.js
@@ -0,0 +1,3 @@
+export function sayHello() {
+ console.log("Hello")
+} \ No newline at end of file
diff --git a/tests/registry/npm/@denotest/unstable/1.0.0-beta.1/package.json b/tests/registry/npm/@denotest/unstable/1.0.0-beta.1/package.json
new file mode 100644
index 000000000..69f2a57cd
--- /dev/null
+++ b/tests/registry/npm/@denotest/unstable/1.0.0-beta.1/package.json
@@ -0,0 +1,5 @@
+{
+ "name": "@denotest/unstable",
+ "type": "module",
+ "version": "1.0.0-beta.1"
+} \ No newline at end of file