Skip to content

Commit 4cfca5d

Browse files
author
Bruno Rocha
committed
Update package.json with new configs
1 parent 7fbbb1e commit 4cfca5d

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

package.json

+10-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"name": "jsonweaver",
33
"version": "1.1.2",
4+
"type": "module",
45
"description": "A simple utility to transform JSON data into CSV, XML, YAML, JSONLines and Markdown table formats.",
56
"keywords": [
67
"csv",
@@ -27,8 +28,15 @@
2728
},
2829
"homepage": "https://github.com/kledenai/jsonweaver#readme",
2930
"license": "MIT",
30-
"main": "dist/index.js",
31-
"types": "dist/index.d.ts",
31+
"main": "dist/index.cjs",
32+
"module": "./dist/index.js",
33+
"types": "./dist/index.d.ts",
34+
"exports": {
35+
".": {
36+
"require": "./dist/index.cjs",
37+
"import": "./dist/index.js"
38+
}
39+
},
3240
"files": [
3341
"dist"
3442
],

0 commit comments

Comments
 (0)