Skip to content

Commit

Permalink
Convert source code to ESM
Browse files Browse the repository at this point in the history
- ESM require file extension to import
  • Loading branch information
azu committed Jan 14, 2023
1 parent dba7c02 commit 63933d9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export { sum } from "./sum";
export { sum } from "./sum.js";
2 changes: 1 addition & 1 deletion test/sum.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { sum } from "../src";
import { sum } from "../src/sum.js";
import { describe, it } from "node:test";
import assert from "assert";
describe("sum", function() {
Expand Down

0 comments on commit 63933d9

Please sign in to comment.