Skip to content

Commit

Permalink
use js extension
Browse files Browse the repository at this point in the history
  • Loading branch information
Shinigami92 committed Jul 18, 2023
1 parent 614c0d1 commit b535658
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"bugs": "https://github.com/faker-js/faker/issues",
"license": "MIT",
"type": "module",
"main": "dist/cjs/index.cjs",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"types": "index.d.ts",
"typesVersions": {
Expand All @@ -43,13 +43,13 @@
".": {
"types": "./dist/types/index.d.ts",
"import": "./dist/esm/index.js",
"require": "./dist/cjs/index.cjs",
"require": "./dist/cjs/index.js",
"default": "./dist/esm/index.js"
},
"./locale/*": {
"types": "./dist/types/locale/*.d.ts",
"import": "./dist/esm/locale/*.js",
"require": "./dist/cjs/locale/*.cjs",
"require": "./dist/cjs/locale/*.js",
"default": "./dist/esm/locale/*.js"
},
"./package.json": "./package.json"
Expand Down
1 change: 0 additions & 1 deletion scripts/bundle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ buildSync({
format: 'cjs',
platform: 'node',
target,
outExtension: { '.js': '.cjs' },
});

console.log('Building dist for node type=module (esm)...');
Expand Down

0 comments on commit b535658

Please sign in to comment.