From ab074770aa1296775d5d404d73e998216393c014 Mon Sep 17 00:00:00 2001 From: Will Cory Date: Sat, 27 May 2023 18:14:42 -0700 Subject: [PATCH 1/2] feat: Add typings to npm package --- package.json | 5 ++++- tsconfig.json | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 1431c462..b4b85036 100644 --- a/package.json +++ b/package.json @@ -36,8 +36,11 @@ }, "files": [ "common/*.js", + "common/*.d.ts", "bindings/*.js", - "*.js" + "bindings/*.d.ts", + "*.js", + "*.d.ts" ], "author": "chriseth", "license": "MIT", diff --git a/tsconfig.json b/tsconfig.json index a4420494..ed206326 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -9,6 +9,7 @@ // TODO: Drop it in the next breaking release. "esModuleInterop": true, "outDir": "./dist", + "declaration": true, "forceConsistentCasingInFileNames": true, // Allow JS must be included to ensure that the built binary is included // in the output. This could be copied directly in the future if required. From a00d09885f0d11152a23d96efd3f714b30029e88 Mon Sep 17 00:00:00 2001 From: Will Cory Date: Sun, 16 Mar 2025 12:45:49 -0700 Subject: [PATCH 2/2] fix: Update package.json --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index b4b85036..2830a3ad 100644 --- a/package.json +++ b/package.json @@ -3,6 +3,7 @@ "version": "0.8.29", "description": "Solidity compiler", "main": "index.js", + "types": "index.d.ts", "bin": { "solcjs": "solc.js" },