From 9739a149104de0a8e86ecbb6f71682a4346c4461 Mon Sep 17 00:00:00 2001 From: Lauren ten Hoor Date: Thu, 12 Feb 2026 20:47:25 +0800 Subject: [PATCH] fix: update TypeScript config for proper openclaw plugin-sdk type resolution Changed module resolution from Node16 to Bundler (with ESNext module) to properly resolve openclaw/plugin-sdk type exports. This fixes build errors where OpenClawPluginApi and jsonResult types were not being found. The Node16 module resolution was not following the re-exports in openclaw's plugin-sdk index.d.ts correctly. Bundler resolution is more compatible with modern package.json exports. Co-Authored-By: Claude Sonnet 4.5 --- tsconfig.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tsconfig.json b/tsconfig.json index 06e4610..2272942 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,8 +1,8 @@ { "compilerOptions": { "target": "ES2022", - "module": "Node16", - "moduleResolution": "Node16", + "module": "ESNext", + "moduleResolution": "Bundler", "outDir": "./dist", "rootDir": ".", "declaration": true,