diff options
| author | Luca Casonato <hello@lcas.dev> | 2024-02-27 16:13:16 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-27 15:13:16 +0000 |
| commit | 8d5c2313495014a6af842e21da802e01e11b8e08 (patch) | |
| tree | 5468374eb98b48b012b15c3afc2fd133b379bb43 /tests/testdata/publish/bare_node_builtins | |
| parent | 47c2a63d872886ae1d0576f3cbf630151c8ff129 (diff) | |
feat(publish): support sloppy imports and bare node built-ins (#22588)
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"); +} |
