diff options
Diffstat (limited to 'tests/testdata/publish/bare_node_builtins')
| -rw-r--r-- | tests/testdata/publish/bare_node_builtins/deno.json | 7 | ||||
| -rw-r--r-- | tests/testdata/publish/bare_node_builtins/mod.ts | 5 |
2 files changed, 12 insertions, 0 deletions
diff --git a/tests/testdata/publish/bare_node_builtins/deno.json b/tests/testdata/publish/bare_node_builtins/deno.json new file mode 100644 index 000000000..213a7cec6 --- /dev/null +++ b/tests/testdata/publish/bare_node_builtins/deno.json @@ -0,0 +1,7 @@ +{ + "name": "@foo/bar", + "version": "1.0.0", + "exports": { + ".": "./mod.ts" + } +} diff --git a/tests/testdata/publish/bare_node_builtins/mod.ts b/tests/testdata/publish/bare_node_builtins/mod.ts new file mode 100644 index 000000000..04374d8b7 --- /dev/null +++ b/tests/testdata/publish/bare_node_builtins/mod.ts @@ -0,0 +1,5 @@ +import * as url from "url"; + +export function foobar(): { href: string } { + return url.pathToFileURL("/foo/bar"); +} |
