Skip to content

Commit 0e8f0ac

Browse files
committed
feat: support esm and cjs
1 parent 2800655 commit 0e8f0ac

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

package.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,22 @@
33
"version": "3.1.0",
44
"description": "Lightweight logging library for any Node 10+ applications",
55
"main": "index.js",
6+
"main": "dist/cjs/index.js",
7+
"types": "dist/cjs/index.d.ts",
8+
"exports": {
9+
".": {
10+
"import": "./dist/esm/index.js",
11+
"require": "./dist/cjs/index.js"
12+
},
13+
"./LambdaLog": {
14+
"import": "./dist/esm/LambdaLog.js",
15+
"require": "./dist/cjs/LambdaLog.js"
16+
},
17+
"./LogMessage": {
18+
"import": "./dist/esm/LogMessage.js",
19+
"require": "./dist/cjs/LogMessage.js"
20+
}
21+
},
622
"scripts": {
723
"test": "jest",
824
"prepare": "is-ci || husky install",

0 commit comments

Comments
 (0)