From 0709c051f83c181206f6653396f5428df66ed74f Mon Sep 17 00:00:00 2001 From: David Sherret Date: Mon, 18 Sep 2023 10:46:44 -0400 Subject: 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. --- cli/tests/testdata/jsr/no_module_graph/main.out | 6 ++++++ cli/tests/testdata/jsr/no_module_graph/main.ts | 4 ++++ cli/tests/testdata/jsr/no_module_graph/main_info.out | 12 ++++++++++++ cli/tests/testdata/jsr/no_module_graph/multiple.out | 2 ++ cli/tests/testdata/jsr/no_module_graph/multiple.ts | 5 +++++ 5 files changed, 29 insertions(+) create mode 100644 cli/tests/testdata/jsr/no_module_graph/main.out create mode 100644 cli/tests/testdata/jsr/no_module_graph/main.ts create mode 100644 cli/tests/testdata/jsr/no_module_graph/main_info.out create mode 100644 cli/tests/testdata/jsr/no_module_graph/multiple.out create mode 100644 cli/tests/testdata/jsr/no_module_graph/multiple.ts (limited to 'cli/tests/testdata/jsr/no_module_graph') diff --git a/cli/tests/testdata/jsr/no_module_graph/main.out b/cli/tests/testdata/jsr/no_module_graph/main.out new file mode 100644 index 000000000..70cae572d --- /dev/null +++ b/cli/tests/testdata/jsr/no_module_graph/main.out @@ -0,0 +1,6 @@ +Download http://localhost:4545/jsr/registry/@denotest/no_module_graph/meta.json +Download http://localhost:4545/jsr/registry/@denotest/no_module_graph/0.1.0_meta.json +Download http://localhost:4545/jsr/registry/@denotest/no_module_graph/0.1.0/mod.ts +Download http://localhost:4545/jsr/registry/@denotest/no_module_graph/0.1.0/TestClass.ts +0.1.0 +TestClass {} diff --git a/cli/tests/testdata/jsr/no_module_graph/main.ts b/cli/tests/testdata/jsr/no_module_graph/main.ts new file mode 100644 index 000000000..ab1e781dc --- /dev/null +++ b/cli/tests/testdata/jsr/no_module_graph/main.ts @@ -0,0 +1,4 @@ +import version, { TestClass } from "jsr:@denotest/no_module_graph@0.1.0/mod.ts"; + +console.log(version); +console.log(new TestClass()); diff --git a/cli/tests/testdata/jsr/no_module_graph/main_info.out b/cli/tests/testdata/jsr/no_module_graph/main_info.out new file mode 100644 index 000000000..282e0580c --- /dev/null +++ b/cli/tests/testdata/jsr/no_module_graph/main_info.out @@ -0,0 +1,12 @@ +Download http://localhost:4545/jsr/registry/@denotest/no_module_graph/meta.json +Download http://localhost:4545/jsr/registry/@denotest/no_module_graph/0.1.0_meta.json +Download http://localhost:4545/jsr/registry/@denotest/no_module_graph/0.1.0/mod.ts +Download http://localhost:4545/jsr/registry/@denotest/no_module_graph/0.1.0/TestClass.ts +local: [WILDCARD]main.ts +type: TypeScript +dependencies: 2 unique +size: [WILDCARD] + +file:///[WILDCARD]/jsr/no_module_graph/main.ts ([WILDCARD]) +└─┬ http://localhost:4545/jsr/registry/@denotest/no_module_graph/0.1.0/mod.ts ([WILDCARD]) + └── http://localhost:4545/jsr/registry/@denotest/no_module_graph/0.1.0/TestClass.ts ([WILDCARD]) diff --git a/cli/tests/testdata/jsr/no_module_graph/multiple.out b/cli/tests/testdata/jsr/no_module_graph/multiple.out new file mode 100644 index 000000000..8146276d0 --- /dev/null +++ b/cli/tests/testdata/jsr/no_module_graph/multiple.out @@ -0,0 +1,2 @@ +0.1.0 +0.2.0 diff --git a/cli/tests/testdata/jsr/no_module_graph/multiple.ts b/cli/tests/testdata/jsr/no_module_graph/multiple.ts new file mode 100644 index 000000000..0df32b780 --- /dev/null +++ b/cli/tests/testdata/jsr/no_module_graph/multiple.ts @@ -0,0 +1,5 @@ +import version1 from "jsr:@denotest/no_module_graph@0.1.0/mod.ts"; +import version2 from "jsr:@denotest/no_module_graph@^0.2/mod.ts"; + +console.log(version1); +console.log(version2); -- cgit v1.2.3