summaryrefslogtreecommitdiff
path: root/cli/tests/testdata/publish/successful
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2024-01-10 17:40:30 -0500
committerGitHub <noreply@github.com>2024-01-10 22:40:30 +0000
commit70ac06138c18cf643e7e1947dee54f3adff13de3 (patch)
tree73cd8fb7fe51ecbdcf47770b15b27f6fb49b4d05 /cli/tests/testdata/publish/successful
parent515a34b4de222e35c7ade1b92614d746e73d4c2e (diff)
feat(unstable): fast subset type checking of JSR dependencies (#21873)
Diffstat (limited to 'cli/tests/testdata/publish/successful')
-rw-r--r--cli/tests/testdata/publish/successful/deno.json2
-rw-r--r--cli/tests/testdata/publish/successful/mod.ts2
-rw-r--r--cli/tests/testdata/publish/successful/std_http.ts6
3 files changed, 8 insertions, 2 deletions
diff --git a/cli/tests/testdata/publish/successful/deno.json b/cli/tests/testdata/publish/successful/deno.json
index 930f3aa08..fefab899b 100644
--- a/cli/tests/testdata/publish/successful/deno.json
+++ b/cli/tests/testdata/publish/successful/deno.json
@@ -5,6 +5,6 @@
".": "./mod.ts"
},
"imports": {
- "@std/http": "jsr:@std/http@1"
+ "@std/http": "./std_http.ts"
}
}
diff --git a/cli/tests/testdata/publish/successful/mod.ts b/cli/tests/testdata/publish/successful/mod.ts
index 152bce40b..4bb6da255 100644
--- a/cli/tests/testdata/publish/successful/mod.ts
+++ b/cli/tests/testdata/publish/successful/mod.ts
@@ -1,5 +1,5 @@
import http from "@std/http";
-export function foobar() {
+export function foobar(): { fileServer(): void } {
return http.fileServer;
}
diff --git a/cli/tests/testdata/publish/successful/std_http.ts b/cli/tests/testdata/publish/successful/std_http.ts
new file mode 100644
index 000000000..9d57b36f3
--- /dev/null
+++ b/cli/tests/testdata/publish/successful/std_http.ts
@@ -0,0 +1,6 @@
+// temp until we get jsr:@std/http in the test server
+export default {
+ fileServer() {
+ console.log("Hi");
+ },
+};