Skip to content

Commit e64b501

Browse files
authored
Merge pull request #13 from vim-denops/refine-exports
☕ Refine JSR exports
2 parents 52c6a4a + 830d162 commit e64b501

File tree

5 files changed

+9
-5
lines changed

5 files changed

+9
-5
lines changed

deno.jsonc

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
{
22
"name": "@denops/core",
33
"version": "0.0.0",
4-
"exports": "./mod.ts",
4+
"exports": {
5+
".": "./mod.ts",
6+
"./type": "./type.ts",
7+
"./error": "./error.ts"
8+
},
59
"publish": {
610
"include": [
711
"**/*.ts",

errors.ts error.ts

File renamed without changes.

errors_test.ts error_test.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import {
55
assertMatch,
66
} from "@std/assert";
77

8-
import { BatchError } from "./errors.ts";
8+
import { BatchError } from "./error.ts";
99

1010
Deno.test("BatchError", async (t) => {
1111
await t.step(".constructor()", async (t) => {
@@ -30,7 +30,7 @@ Deno.test("BatchError", async (t) => {
3030
await t.step("returns an error stack trace", () => {
3131
const actual = new BatchError("foo", ["bar", 1, true]);
3232
assert(actual.stack);
33-
assertMatch(actual.stack, /\bat .*errors_test\.ts:\d+:\d+\n/);
33+
assertMatch(actual.stack, /\bat .*error_test\.ts:\d+:\d+\n/);
3434
});
3535
});
3636
await t.step(".results getter", async (t) => {

mod.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,5 @@
2323
* @module
2424
*/
2525

26-
export * from "./errors.ts";
27-
export type * from "./types.ts";
26+
export * from "./error.ts";
27+
export type * from "./type.ts";

types.ts type.ts

File renamed without changes.

0 commit comments

Comments
 (0)