Skip to content

Commit

Permalink
feat: the package is now compiled for both ESM and CommonJs
Browse files Browse the repository at this point in the history
  • Loading branch information
gentlementlegen committed Jul 3, 2024
1 parent 493e2ac commit 42f1cab
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"sourcemap": true,
"clean": true,
"dts": true,
"format": "esm"
"format": ["cjs", "esm"]
},
"files": [
"dist/*"
Expand All @@ -33,11 +33,13 @@
"exports": {
".": {
"types": "./dist/logs.d.ts",
"default": "./dist/logs.js"
"require": "./dist/logs.cjs",
"import": "./dist/logs.js"
},
"./pretty-logs": {
"types": "./dist/pretty-logs.d.ts",
"default": "./dist/pretty-logs.js"
"require": "./dist/pretty-logs.cjs",
"import": "./dist/pretty-logs.js"
}
},
"scripts": {
Expand Down

0 comments on commit 42f1cab

Please sign in to comment.