Skip to content

Commit 5ba3ce4

Browse files
committed
fix: incorrect cjs extension
1 parent af167f9 commit 5ba3ce4

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

package.json

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@
1717
"type": "commonjs",
1818
"source": "src/index.ts",
1919
"exports": {
20-
"require": "./dist/index.cjs",
20+
"require": "./dist/index.js",
2121
"types": "./dist/index.d.ts",
2222
"default": "./dist/index.mjs"
2323
},
2424
"types": "dist/index.d.ts",
25-
"main": "dist/index.cjs",
25+
"main": "dist/index.js",
2626
"module": "dist/index.mjs",
2727
"umd:main": "dist/index.umd.js",
2828
"engines": {
@@ -55,11 +55,10 @@
5555
},
5656
"scripts": {
5757
"start": "node build/src/main.js",
58-
"clean": "rimraf coverage build tmp",
58+
"clean": "rimraf dist",
5959
"prebuild": "npm run lint",
60-
"build": "rimraf dist && microbundle src/*.ts --tsconfig tsconfig.release.json",
60+
"build": "npm run clean && microbundle src/*.ts --tsconfig tsconfig.release.json",
6161
"build:watch": "tsc -w -p tsconfig.json",
62-
"build:release": "npm run clean && tsc -p tsconfig.release.json",
6362
"lint": "eslint . --ext .ts --ext .mts",
6463
"test": "hardhat test",
6564
"prettier": "prettier --config .prettierrc --write .",

0 commit comments

Comments
 (0)