summaryrefslogtreecommitdiff
path: root/cli/tests/testdata/jsr/registry/@denotest/module_graph
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2023-09-18 10:46:44 -0400
committerGitHub <noreply@github.com>2023-09-18 10:46:44 -0400
commit0709c051f83c181206f6653396f5428df66ed74f (patch)
tree9360ce6cfc2c3f3f53a8a7af0f9d3bdc9e1ee553 /cli/tests/testdata/jsr/registry/@denotest/module_graph
parent4fcd9a0de815a756e5f173e1bc1f84d90ba39ec7 (diff)
feat(unstable): package manager (#20517)
Adds an experimental unstable built-in package manager to Deno, but it is currently not usable because the registry infrastructure hasn't been setup and it points to a non-existent url by default. The default registry url can be configured via the `DENO_REGISTRY_URL` environment variable.
Diffstat (limited to 'cli/tests/testdata/jsr/registry/@denotest/module_graph')
-rw-r--r--cli/tests/testdata/jsr/registry/@denotest/module_graph/1.4.0/mod.ts5
-rw-r--r--cli/tests/testdata/jsr/registry/@denotest/module_graph/1.4.0/other.ts2
-rw-r--r--cli/tests/testdata/jsr/registry/@denotest/module_graph/1.4.0_meta.json13
-rw-r--r--cli/tests/testdata/jsr/registry/@denotest/module_graph/meta.json6
4 files changed, 26 insertions, 0 deletions
diff --git a/cli/tests/testdata/jsr/registry/@denotest/module_graph/1.4.0/mod.ts b/cli/tests/testdata/jsr/registry/@denotest/module_graph/1.4.0/mod.ts
new file mode 100644
index 000000000..cb3c4a5e0
--- /dev/null
+++ b/cli/tests/testdata/jsr/registry/@denotest/module_graph/1.4.0/mod.ts
@@ -0,0 +1,5 @@
+import { Other } from "./other.ts";
+
+export class Test {
+ other = new Other();
+}
diff --git a/cli/tests/testdata/jsr/registry/@denotest/module_graph/1.4.0/other.ts b/cli/tests/testdata/jsr/registry/@denotest/module_graph/1.4.0/other.ts
new file mode 100644
index 000000000..57e436cf8
--- /dev/null
+++ b/cli/tests/testdata/jsr/registry/@denotest/module_graph/1.4.0/other.ts
@@ -0,0 +1,2 @@
+export class Other {
+}
diff --git a/cli/tests/testdata/jsr/registry/@denotest/module_graph/1.4.0_meta.json b/cli/tests/testdata/jsr/registry/@denotest/module_graph/1.4.0_meta.json
new file mode 100644
index 000000000..d1e9a96b9
--- /dev/null
+++ b/cli/tests/testdata/jsr/registry/@denotest/module_graph/1.4.0_meta.json
@@ -0,0 +1,13 @@
+{
+ "moduleGraph1": {
+ "/mod.ts": {
+ "dependencies": [{
+ "kind": "import",
+ "range": [[0, 0], [0, 35]],
+ "specifier": "./other.ts",
+ "specifierRange": [[0, 22], [0, 34]]
+ }]
+ },
+ "/other.ts": {}
+ }
+}
diff --git a/cli/tests/testdata/jsr/registry/@denotest/module_graph/meta.json b/cli/tests/testdata/jsr/registry/@denotest/module_graph/meta.json
new file mode 100644
index 000000000..9a450c08b
--- /dev/null
+++ b/cli/tests/testdata/jsr/registry/@denotest/module_graph/meta.json
@@ -0,0 +1,6 @@
+{
+ "versions": {
+ "1.0.0": {},
+ "1.4.0": {}
+ }
+}