diff --git a/package.json b/package.json index 2b9b8b5..91e7c96 100644 --- a/package.json +++ b/package.json @@ -6,11 +6,12 @@ "homepage": "https://github.com/gnosisguild/ser-kit", "packageManager": "bun@1.1.12", "main": "dist/index.js", + "module": "dist/index.mjs", "types": "dist/index.d.ts", - ".": { + "exports": { + "types": "./dist/index.d.ts", "import": "./dist/index.mjs", - "require": "./dist/index.js", - "default": "./dist/index.js" + "require": "./dist/index.js" }, "files": [ "dist", diff --git a/src/execute/plan.ts b/src/execute/plan.ts index 51cbba5..44dada2 100644 --- a/src/execute/plan.ts +++ b/src/execute/plan.ts @@ -70,7 +70,7 @@ interface Options { export const planExecution = async ( transactions: readonly MetaTransactionRequest[], route: Route, - options: Options + options: Options = {} ): Promise => { // encode batch using the appropriate multiSend contract address const lastRolesAccount = route.waypoints.findLast(