diff options
Diffstat (limited to 'cli/tests/testdata/publish/workspace')
| -rw-r--r-- | cli/tests/testdata/publish/workspace/bar/deno.json | 7 | ||||
| -rw-r--r-- | cli/tests/testdata/publish/workspace/bar/mod.ts | 3 | ||||
| -rw-r--r-- | cli/tests/testdata/publish/workspace/deno.json | 6 | ||||
| -rw-r--r-- | cli/tests/testdata/publish/workspace/foo/deno.json | 10 | ||||
| -rw-r--r-- | cli/tests/testdata/publish/workspace/foo/mod.ts | 5 |
5 files changed, 31 insertions, 0 deletions
diff --git a/cli/tests/testdata/publish/workspace/bar/deno.json b/cli/tests/testdata/publish/workspace/bar/deno.json new file mode 100644 index 000000000..213a7cec6 --- /dev/null +++ b/cli/tests/testdata/publish/workspace/bar/deno.json @@ -0,0 +1,7 @@ +{ + "name": "@foo/bar", + "version": "1.0.0", + "exports": { + ".": "./mod.ts" + } +} diff --git a/cli/tests/testdata/publish/workspace/bar/mod.ts b/cli/tests/testdata/publish/workspace/bar/mod.ts new file mode 100644 index 000000000..8d9b8a22a --- /dev/null +++ b/cli/tests/testdata/publish/workspace/bar/mod.ts @@ -0,0 +1,3 @@ +export function add(a: number, b: number): number { + return a + b; +} diff --git a/cli/tests/testdata/publish/workspace/deno.json b/cli/tests/testdata/publish/workspace/deno.json new file mode 100644 index 000000000..57602aab5 --- /dev/null +++ b/cli/tests/testdata/publish/workspace/deno.json @@ -0,0 +1,6 @@ +{ + "workspaces": [ + "foo", + "bar" + ] +} diff --git a/cli/tests/testdata/publish/workspace/foo/deno.json b/cli/tests/testdata/publish/workspace/foo/deno.json new file mode 100644 index 000000000..79563d36c --- /dev/null +++ b/cli/tests/testdata/publish/workspace/foo/deno.json @@ -0,0 +1,10 @@ +{ + "name": "@foo/foo", + "version": "1.0.0", + "exports": { + ".": "./mod.ts" + }, + "imports": { + "bar": "jsr:@foo/bar@1" + } +} diff --git a/cli/tests/testdata/publish/workspace/foo/mod.ts b/cli/tests/testdata/publish/workspace/foo/mod.ts new file mode 100644 index 000000000..adf584463 --- /dev/null +++ b/cli/tests/testdata/publish/workspace/foo/mod.ts @@ -0,0 +1,5 @@ +import * as bar from "bar"; + +export function add(a: number, b: number): number { + return bar.add(a, b); +} |
