aboutsummaryrefslogtreecommitdiff
path: root/package.json
diff options
context:
space:
mode:
authorShinigami <[email protected]>2024-02-18 22:43:16 +0100
committerGitHub <[email protected]>2024-02-18 22:43:16 +0100
commitec5609b18c79ea9fc8183ae78e917801e6a8a3f4 (patch)
tree35999710134991d586ee53d64808e76e351dfa08 /package.json
parentdb88a1518e8d0ccfe191bd48a1ae8641a9a25303 (diff)
downloadfaker-ec5609b18c79ea9fc8183ae78e917801e6a8a3f4.tar.xz
faker-ec5609b18c79ea9fc8183ae78e917801e6a8a3f4.zip
chore: convert to esm (#2261)
Diffstat (limited to 'package.json')
-rw-r--r--package.json15
1 files changed, 9 insertions, 6 deletions
diff --git a/package.json b/package.json
index 6a8f60ac..3fa55398 100644
--- a/package.json
+++ b/package.json
@@ -28,8 +28,9 @@
],
"bugs": "https://github.com/faker-js/faker/issues",
"license": "MIT",
- "main": "dist/index.js",
- "module": "dist/index.mjs",
+ "type": "module",
+ "main": "dist/index.cjs",
+ "module": "dist/index.js",
"types": "index.d.ts",
"typesVersions": {
">=4.0": {
@@ -41,13 +42,15 @@
"exports": {
".": {
"types": "./dist/types/index.d.ts",
- "require": "./dist/index.js",
- "import": "./dist/index.mjs"
+ "import": "./dist/index.js",
+ "require": "./dist/index.cjs",
+ "default": "./dist/index.js"
},
"./locale/*": {
"types": "./dist/types/locale/*.d.ts",
- "require": "./dist/locale/*.js",
- "import": "./dist/locale/*.mjs"
+ "import": "./dist/locale/*.js",
+ "require": "./dist/locale/*.cjs",
+ "default": "./dist/locale/*.js"
},
"./package.json": "./package.json"
},