Skip to content

Commit cb77bc8

Browse files
committed
add mod.ts for deno
1 parent f82fac4 commit cb77bc8

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

example/deno-with-denoland.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/usr/bin/env deno run
2+
/* eslint-disable no-console */
3+
import * as msgpack from "https://deno.land/x/msgpack_javascript/mod.ts";
4+
5+
console.log(msgpack.decode(msgpack.encode("Hello, world!")));

mod.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export * from "./dist.es5+esm/index.mjs";

test/deno_test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import {
55
assertEquals,
66
} from "https://deno.land/std/testing/asserts.ts";
7-
import * as msgpack from "../dist.es5+esm/index.mjs";
7+
import * as msgpack from "../mod.ts";
88

99
Deno.test("Hello, world!", () => {
1010
const encoded = msgpack.encode("Hello, world!");

0 commit comments

Comments
 (0)