aboutsummaryrefslogtreecommitdiff
path: root/package.json
diff options
context:
space:
mode:
authorShinigami <[email protected]>2025-07-04 19:32:41 +0200
committerGitHub <[email protected]>2025-07-04 17:32:41 +0000
commit160960b79719e1298668a7ebba390b30b8de1080 (patch)
tree5d5b215b045e48a7c7747d161931cf7ac7596e9d /package.json
parent4e422f72fa6065db906a01836a4e76540f0f9a18 (diff)
downloadfaker-160960b79719e1298668a7ebba390b30b8de1080.tar.xz
faker-160960b79719e1298668a7ebba390b30b8de1080.zip
feat!: esm only (#3540)
Diffstat (limited to 'package.json')
-rw-r--r--package.json14
1 files changed, 3 insertions, 11 deletions
diff --git a/package.json b/package.json
index 661fdadd..75e6f2a4 100644
--- a/package.json
+++ b/package.json
@@ -67,20 +67,12 @@
"type": "module",
"exports": {
".": {
- "require": {
- "types": "./dist/index.d.cts",
- "default": "./dist/index.cjs"
- },
"default": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
}
},
"./locale/*": {
- "require": {
- "types": "./dist/locale/*.d.cts",
- "default": "./dist/locale/*.cjs"
- },
"default": {
"types": "./dist/locale/*.d.ts",
"default": "./dist/locale/*.js"
@@ -88,7 +80,7 @@
},
"./package.json": "./package.json"
},
- "main": "dist/index.cjs",
+ "main": "dist/index.js",
"module": "dist/index.js",
"types": "dist/index.d.ts",
"typesVersions": {
@@ -145,8 +137,8 @@
},
"packageManager": "[email protected]",
"engines": {
- "node": ">=18.0.0",
- "npm": ">=9.0.0"
+ "node": ">=20.19",
+ "npm": ">=10"
},
"pnpm": {
"ignoredBuiltDependencies": [