diff --git a/package-lock.json b/package-lock.json index 9dce92d..05b8571 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,6 +9,7 @@ "version": "3.0.0", "license": "MIT", "dependencies": { + "abitype": "^1.0.7", "permissionless": "^0.2.21", "viem": "^2.21.22" }, @@ -41,7 +42,7 @@ "ts-loader": "^9.5.1", "ts-node": "^10.9.2", "tslib": "^2.7.0", - "typescript": "^5.6.3", + "typescript": "^5.7.2", "webpack": "^5.95.0", "webpack-bundle-analyzer": "^4.10.2", "webpack-cli": "^5.1.4" @@ -3609,9 +3610,9 @@ "dev": true }, "node_modules/abitype": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/abitype/-/abitype-1.0.6.tgz", - "integrity": "sha512-MMSqYh4+C/aVqI2RQaWqbvI4Kxo5cQV40WQ4QFtDnNzCkqChm8MuENhElmynZlO0qUy/ObkEUaXtKqYnx1Kp3A==", + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/abitype/-/abitype-1.0.7.tgz", + "integrity": "sha512-ZfYYSktDQUwc2eduYu8C4wOs+RDPmnRYMh7zNfzeMtGGgb0U+6tLGjixUic6mXf5xKKCcgT5Qp6cv39tOARVFw==", "license": "MIT", "funding": { "url": "https://github.com/sponsors/wevm" @@ -9636,10 +9637,11 @@ } }, "node_modules/typescript": { - "version": "5.6.3", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.6.3.tgz", - "integrity": "sha512-hjcS1mhfuyi4WW8IWtjP7brDrG2cuDZukyrYrSauoXGNgx0S7zceP07adYkJycEr56BOUTNPzbInooiN3fn1qw==", + "version": "5.7.2", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.7.2.tgz", + "integrity": "sha512-i5t66RHxDvVN40HfDd1PsEThGNnlMCMT3jMUuoh9/0TaqWevNontacunWyN02LA9/fIbEWlcHZcgTKb9QoaLfg==", "devOptional": true, + "license": "Apache-2.0", "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" @@ -9825,6 +9827,27 @@ "url": "https://paulmillr.com/funding/" } }, + "node_modules/viem/node_modules/abitype": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/abitype/-/abitype-1.0.6.tgz", + "integrity": "sha512-MMSqYh4+C/aVqI2RQaWqbvI4Kxo5cQV40WQ4QFtDnNzCkqChm8MuENhElmynZlO0qUy/ObkEUaXtKqYnx1Kp3A==", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/wevm" + }, + "peerDependencies": { + "typescript": ">=5.0.4", + "zod": "^3 >=3.22.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + }, + "zod": { + "optional": true + } + } + }, "node_modules/walker": { "version": "1.0.8", "resolved": "https://registry.npmjs.org/walker/-/walker-1.0.8.tgz", diff --git a/package.json b/package.json index 42abefb..969827c 100644 --- a/package.json +++ b/package.json @@ -72,12 +72,13 @@ "ts-loader": "^9.5.1", "ts-node": "^10.9.2", "tslib": "^2.7.0", - "typescript": "^5.6.3", + "typescript": "^5.7.2", "webpack": "^5.95.0", "webpack-bundle-analyzer": "^4.10.2", "webpack-cli": "^5.1.4" }, "dependencies": { + "abitype": "^1.0.7", "permissionless": "^0.2.21", "viem": "^2.21.22" }, diff --git a/tsconfig.json b/tsconfig.json index 4ea243c..3d7e07e 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -31,6 +31,8 @@ "rootDirs": [ "src" ], - "outDir": "dist" + "outDir": "dist", + "sourceMap": true, + "declarationMap": false, } } diff --git a/webpack.config.ts b/webpack.config.ts index e92cf1b..05017e1 100644 --- a/webpack.config.ts +++ b/webpack.config.ts @@ -54,7 +54,6 @@ const base = async (env?: Partial): Promise => ) } // change node modules to browser modules according to packageJson.browser mapping - // eslint-disable-next-line guard-for-in const browserModuleMapping = PackageJson.browser as { [key: string]: string } // eslint-disable-next-line guard-for-in for (const nodeReference in browserModuleMapping) { @@ -80,7 +79,8 @@ const base = async (env?: Partial): Promise => }, bail: Boolean(isProduction), mode: env?.mode || 'development', - devtool: isProduction ? 'source-map' : 'cheap-module-source-map', + // disable for production until revised + devtool: isProduction ? false : 'cheap-module-source-map', entry, output: { path,