Skip to content

Commit 39a9f43

Browse files
committed
fix: update main to point to root index.js file for cjs usage
1 parent 1c6376c commit 39a9f43

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,11 @@
22
"name": "lambda-log",
33
"version": "4.0.0-beta.1",
44
"description": "Lightweight logging library for any Node 12+ applications",
5-
"main": "dist/cjs/index.js",
5+
"main": "index.js",
66
"types": "dist/cjs/index.d.ts",
77
"exports": {
88
".": {
99
"import": "./dist/esm/index.js",
10-
"require": "./dist/cjs/index.js"
1110
},
1211
"./LambdaLog": {
1312
"import": "./dist/esm/LambdaLog.js",
@@ -16,6 +15,7 @@
1615
"./LogMessage": {
1716
"import": "./dist/esm/LogMessage.js",
1817
"require": "./dist/cjs/LogMessage.js"
18+
"require": "./index.js"
1919
}
2020
},
2121
"scripts": {

0 commit comments

Comments
 (0)