diff --git a/package.json b/package.json index 0a64b1a..a173bdb 100644 --- a/package.json +++ b/package.json @@ -13,9 +13,10 @@ "require": "./dist/cjs/index.js" }, "scripts": { - "build": "yarn build-esm && yarn build-cjs", + "build": "yarn build-esm && yarn build-cjs && yarn build-cjs-package", "build-esm": "tsc --project tsconfig.build.json --outDir dist/esm --module esnext", - "build-cjs": "tsc --project tsconfig.build.json --outDir dist/cjs --module commonjs && echo '{\n \"type\": \"commonjs\"\n}' > dist/cjs/package.json", + "build-cjs": "tsc --project tsconfig.build.json --outDir dist/cjs --module commonjs", + "build-cjs-package": "echo '{\n \"type\": \"commonjs\"\n}' > dist/cjs/package.json", "clean": "rimraf dist", "lint": "eslint .", "postinstall": "husky install",