Skip to content

Commit

Permalink
Add ESM support
Browse files Browse the repository at this point in the history
  • Loading branch information
3imed-jaberi committed Oct 12, 2024
1 parent 38ab399 commit ed0ec43
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
3 changes: 3 additions & 0 deletions index.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import koaAccessLog from "./index.js";

export default koaAccessLog;
13 changes: 12 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,17 @@
"version": "0.0.2",
"description": "Middleware for common log format access logs",
"main": "index.js",
"files": [
"format.js",
"index.js",
"index.mjs"
],
"exports": {
".": {
"require": "./index.js",
"import": "./index.mjs"
}
},
"scripts": {
"lint": "xo",
"test": "jest"
Expand All @@ -22,7 +33,7 @@
],
"author": "Christoffer Hallas <[email protected]>",
"contributors": [
"3imed-jaberi <[email protected]> (https://www.3imed-jaberi.com)"
"3imed-jaberi <[email protected]> (https://www.3imed-jaberi.com)"
],
"license": "MIT",
"devDependencies": {
Expand Down

0 comments on commit ed0ec43

Please sign in to comment.