From bdf6cf685670ebe22346baa0ee306075f7c12841 Mon Sep 17 00:00:00 2001 From: Lum1104 Date: Sun, 15 Mar 2026 19:12:55 +0800 Subject: [PATCH] fix: resolve plugin installation failures for workspace resolution and missing dependencies - Add pnpm-workspace.yaml to plugin distribution so workspace:* deps resolve on install - Add devlop and hast-util-to-jsx-runtime as explicit dashboard dependencies (pnpm strict hoisting) - Make tsconfig.json files self-contained to work outside monorepo root - Add prepare script to auto-build core package after pnpm install - Bump version to 1.0.2 --- .claude-plugin/marketplace.json | 2 +- package.json | 1 + pnpm-lock.yaml | 6 ++++++ understand-anything-plugin/package.json | 2 +- .../packages/core/tsconfig.json | 13 ++++++++++++- .../packages/dashboard/package.json | 2 ++ understand-anything-plugin/pnpm-workspace.yaml | 2 ++ understand-anything-plugin/tsconfig.json | 13 ++++++++++++- 8 files changed, 37 insertions(+), 4 deletions(-) create mode 100644 understand-anything-plugin/pnpm-workspace.yaml diff --git a/.claude-plugin/marketplace.json b/.claude-plugin/marketplace.json index 54cb9ec..fbec5b4 100644 --- a/.claude-plugin/marketplace.json +++ b/.claude-plugin/marketplace.json @@ -9,7 +9,7 @@ { "name": "understand-anything", "description": "Multi-agent codebase analysis with interactive dashboard, guided tours, and skill commands", - "version": "1.0.1", + "version": "1.0.2", "source": "./understand-anything-plugin" } ] diff --git a/package.json b/package.json index bcc2127..a329f49 100644 --- a/package.json +++ b/package.json @@ -4,6 +4,7 @@ "type": "module", "packageManager": "pnpm@10.6.2+sha512.47870716bea1572b53df34ad8647b42962bc790ce2bf4562ba0f643237d7302a3d6a8ecef9e4bdfc01d23af1969aa90485d4cebb0b9638fa5ef1daef656f6c1b", "scripts": { + "prepare": "pnpm --filter @understand-anything/core build", "build": "pnpm -r build", "test": "vitest", "dev:dashboard": "pnpm --filter @understand-anything/dashboard dev", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index dbc9fb2..3804302 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -70,6 +70,12 @@ importers: '@xyflow/react': specifier: ^12.0.0 version: 12.10.1(@types/react@19.2.14)(react-dom@19.2.4(react@19.2.4))(react@19.2.4) + devlop: + specifier: ^1.1.0 + version: 1.1.0 + hast-util-to-jsx-runtime: + specifier: ^2.3.6 + version: 2.3.6 react: specifier: ^19.0.0 version: 19.2.4 diff --git a/understand-anything-plugin/package.json b/understand-anything-plugin/package.json index 3b3d9d6..adec36d 100644 --- a/understand-anything-plugin/package.json +++ b/understand-anything-plugin/package.json @@ -1,6 +1,6 @@ { "name": "@understand-anything/skill", - "version": "1.0.1", + "version": "1.0.2", "type": "module", "main": "dist/index.js", "types": "dist/index.d.ts", diff --git a/understand-anything-plugin/packages/core/tsconfig.json b/understand-anything-plugin/packages/core/tsconfig.json index 2f355cf..bcc4ab4 100644 --- a/understand-anything-plugin/packages/core/tsconfig.json +++ b/understand-anything-plugin/packages/core/tsconfig.json @@ -1,6 +1,17 @@ { - "extends": "../../../tsconfig.json", "compilerOptions": { + "target": "ES2022", + "module": "ESNext", + "lib": ["ES2022"], + "moduleResolution": "bundler", + "strict": true, + "esModuleInterop": true, + "skipLibCheck": true, + "forceConsistentCasingInFileNames": true, + "resolveJsonModule": true, + "declaration": true, + "declarationMap": true, + "sourceMap": true, "outDir": "dist", "rootDir": "src" }, diff --git a/understand-anything-plugin/packages/dashboard/package.json b/understand-anything-plugin/packages/dashboard/package.json index 623d6a3..960000c 100644 --- a/understand-anything-plugin/packages/dashboard/package.json +++ b/understand-anything-plugin/packages/dashboard/package.json @@ -14,6 +14,8 @@ "@xyflow/react": "^12.0.0", "react": "^19.0.0", "react-dom": "^19.0.0", + "devlop": "^1.1.0", + "hast-util-to-jsx-runtime": "^2.3.6", "react-markdown": "^10.1.0", "zustand": "^5.0.0" }, diff --git a/understand-anything-plugin/pnpm-workspace.yaml b/understand-anything-plugin/pnpm-workspace.yaml new file mode 100644 index 0000000..dee51e9 --- /dev/null +++ b/understand-anything-plugin/pnpm-workspace.yaml @@ -0,0 +1,2 @@ +packages: + - "packages/*" diff --git a/understand-anything-plugin/tsconfig.json b/understand-anything-plugin/tsconfig.json index e460062..bcc4ab4 100644 --- a/understand-anything-plugin/tsconfig.json +++ b/understand-anything-plugin/tsconfig.json @@ -1,6 +1,17 @@ { - "extends": "../tsconfig.json", "compilerOptions": { + "target": "ES2022", + "module": "ESNext", + "lib": ["ES2022"], + "moduleResolution": "bundler", + "strict": true, + "esModuleInterop": true, + "skipLibCheck": true, + "forceConsistentCasingInFileNames": true, + "resolveJsonModule": true, + "declaration": true, + "declarationMap": true, + "sourceMap": true, "outDir": "dist", "rootDir": "src" },