diff options
| author | Shinigami <[email protected]> | 2024-02-18 22:43:16 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-02-18 22:43:16 +0100 |
| commit | ec5609b18c79ea9fc8183ae78e917801e6a8a3f4 (patch) | |
| tree | 35999710134991d586ee53d64808e76e351dfa08 /package.json | |
| parent | db88a1518e8d0ccfe191bd48a1ae8641a9a25303 (diff) | |
| download | faker-ec5609b18c79ea9fc8183ae78e917801e6a8a3f4.tar.xz faker-ec5609b18c79ea9fc8183ae78e917801e6a8a3f4.zip | |
chore: convert to esm (#2261)
Diffstat (limited to 'package.json')
| -rw-r--r-- | package.json | 15 |
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" }, |
