Skip to content

Commit

Permalink
Merge pull request #13 from vim-denops/refine-exports
Browse files Browse the repository at this point in the history
☕  Refine JSR exports
  • Loading branch information
lambdalisue authored Jul 30, 2024
2 parents 52c6a4a + 830d162 commit e64b501
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
6 changes: 5 additions & 1 deletion deno.jsonc
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
{
"name": "@denops/core",
"version": "0.0.0",
"exports": "./mod.ts",
"exports": {
".": "./mod.ts",
"./type": "./type.ts",
"./error": "./error.ts"
},
"publish": {
"include": [
"**/*.ts",
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions errors_test.ts → error_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
assertMatch,
} from "@std/assert";

import { BatchError } from "./errors.ts";
import { BatchError } from "./error.ts";

Deno.test("BatchError", async (t) => {
await t.step(".constructor()", async (t) => {
Expand All @@ -30,7 +30,7 @@ Deno.test("BatchError", async (t) => {
await t.step("returns an error stack trace", () => {
const actual = new BatchError("foo", ["bar", 1, true]);
assert(actual.stack);
assertMatch(actual.stack, /\bat .*errors_test\.ts:\d+:\d+\n/);
assertMatch(actual.stack, /\bat .*error_test\.ts:\d+:\d+\n/);
});
});
await t.step(".results getter", async (t) => {
Expand Down
4 changes: 2 additions & 2 deletions mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@
* @module
*/

export * from "./errors.ts";
export type * from "./types.ts";
export * from "./error.ts";
export type * from "./type.ts";
File renamed without changes.

0 comments on commit e64b501

Please sign in to comment.