diff --git a/packages/types/package.json b/packages/types/package.json index fdb46b00..fb2af723 100644 --- a/packages/types/package.json +++ b/packages/types/package.json @@ -4,7 +4,7 @@ "description": " ", "homepage": "https://github.com/NFTX-project/nftxjs#readme", "license": "MIT", - "main": "main.js", + "main": "dist/cjs/index.js", "types": "dist/ts/index.d.ts", "typedoc": { "entryPoint": "src/index.ts" @@ -18,7 +18,7 @@ }, "scripts": { "lint": "eslint --fix -c ../../.eslintrc.js --ext ts,tsx src && tsc --noEmit", - "build": "rm -rf dist && tsc -d --outDir dist/ts --emitDeclarationOnly", + "build": "rm -rf dist && tsc -d --outDir dist/ts --emitDeclarationOnly && mkdir dist/cjs && echo \"module.exports = {}\" > dist/cjs/index.js", "prepublishOnly": "yarn build" }, "bugs": {