Procházet zdrojové kódy

Move tree-sitter grammars to optionalDependencies for Windows compatibility

tree-sitter-kotlin doesn't ship prebuilt binaries for win32-x64, causing
npm install to fail on Windows without Visual Studio. All grammars are now
optional since the runtime already handles missing parsers gracefully.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Colby McHenry před 4 měsíci
rodič
revize
9a122b041b
2 změnil soubory, kde provedl 14 přidání a 14 odebrání
  1. 2 2
      package-lock.json
  2. 12 12
      package.json

+ 2 - 2
package-lock.json

@@ -1,12 +1,12 @@
 {
   "name": "@colbymchenry/codegraph",
-  "version": "0.4.3",
+  "version": "0.4.4",
   "lockfileVersion": 3,
   "requires": true,
   "packages": {
     "": {
       "name": "@colbymchenry/codegraph",
-      "version": "0.4.3",
+      "version": "0.4.4",
       "hasInstallScript": true,
       "license": "MIT",
       "dependencies": {

+ 12 - 12
package.json

@@ -1,6 +1,6 @@
 {
   "name": "@colbymchenry/codegraph",
-  "version": "0.4.3",
+  "version": "0.4.4",
   "description": "Supercharge Claude Code with semantic code intelligence. 30% fewer tokens, 25% fewer tool calls, 100% local.",
   "main": "dist/index.js",
   "types": "dist/index.d.ts",
@@ -37,7 +37,17 @@
     "better-sqlite3": "^11.0.0",
     "commander": "^14.0.2",
     "figlet": "^1.8.0",
-    "tree-sitter": "0.22.4",
+    "tree-sitter": "0.22.4"
+  },
+  "devDependencies": {
+    "@types/better-sqlite3": "^7.6.0",
+    "@types/figlet": "^1.5.8",
+    "@types/node": "^20.19.30",
+    "typescript": "^5.0.0",
+    "vitest": "^2.1.9"
+  },
+  "optionalDependencies": {
+    "sqlite-vss": "^0.1.2",
     "tree-sitter-c": "0.23.4",
     "tree-sitter-c-sharp": "0.23.1",
     "tree-sitter-cpp": "0.23.4",
@@ -53,16 +63,6 @@
     "tree-sitter-swift": "0.7.1",
     "tree-sitter-typescript": "0.23.2"
   },
-  "devDependencies": {
-    "@types/better-sqlite3": "^7.6.0",
-    "@types/figlet": "^1.5.8",
-    "@types/node": "^20.19.30",
-    "typescript": "^5.0.0",
-    "vitest": "^2.1.9"
-  },
-  "optionalDependencies": {
-    "sqlite-vss": "^0.1.2"
-  },
   "engines": {
     "node": ">=18.0.0"
   },