diff --git a/.changeset/empty-doors-play.md b/.changeset/empty-doors-play.md new file mode 100644 index 0000000..1993d78 --- /dev/null +++ b/.changeset/empty-doors-play.md @@ -0,0 +1,5 @@ +--- +"@everipedia/wagmi-magic-connector": patch +--- + +Adds post processing to build to fix bundling issues diff --git a/package.json b/package.json index db4603d..945fb97 100644 --- a/package.json +++ b/package.json @@ -7,13 +7,9 @@ "type": "module", "repository": "https://github.com/EveripediaNetwork/wagmi-magic-connector", "license": "MIT", - "keywords": [ - "wagmi", - "extension", - "magic" - ], + "keywords": ["wagmi", "extension", "magic"], "scripts": { - "build": "tsc -p tsconfig.json", + "build": "tsc -p tsconfig.json && tsc-esm-fix --target='dist' --ext='.js'", "format": "rome format . --write", "lint": "rome check .", "lint:fix": "yarn lint --apply", @@ -29,7 +25,8 @@ "@magic-ext/oauth": "^11.1.3", "@magic-sdk/provider": "^17.1.2", "@wagmi/core": "^1.0.1", - "magic-sdk": "^17.1.3" + "magic-sdk": "^17.1.3", + "tsc-esm-fix": "^2.20.10" }, "devDependencies": { "changeset": "^0.2.6", @@ -37,14 +34,11 @@ "typescript": "^4.7.4", "viem": "^0.3.18" }, - "peerDependencies": {}, + "peerDependencies": { + "viem": "^0.3.18" + }, "files": [ - "dist", - "!**/*.test.*", - "!**/*.json", - "CHANGELOG.md", - "LICENSE", - "README.md" + "dist", "!**/*.test.*", "!**/*.json", "CHANGELOG.md", "LICENSE", "README.md" ], "publishConfig": { "access": "public"