From d954106e71bb55f3df222fa576bc4e5cf16e1fdb Mon Sep 17 00:00:00 2001 From: Abhigyan Patwari Date: Wed, 1 Apr 2026 16:46:56 +0530 Subject: [PATCH] fix: move gitnexus-shared to devDependencies, use tsc for prepare gitnexus-shared must remain available for tsc to resolve imports during development/CI, but is not needed at runtime since it's bundled into dist/_shared/. Moving it to devDependencies keeps it out of production installs while allowing compilation. The prepare script now runs plain tsc (no shared bundling needed for local dev). Co-Authored-By: Claude Opus 4.6 (1M context) --- gitnexus/package-lock.json | 3 ++- gitnexus/package.json | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/gitnexus/package-lock.json b/gitnexus/package-lock.json index 6d6a958fd..b5a1a139e 100644 --- a/gitnexus/package-lock.json +++ b/gitnexus/package-lock.json @@ -16,7 +16,6 @@ "commander": "^12.0.0", "cors": "^2.8.5", "express": "^4.19.2", - "gitnexus-shared": "file:../gitnexus-shared", "glob": "^11.0.0", "graphology": "^0.25.4", "graphology-indices": "^0.17.0", @@ -50,6 +49,7 @@ "@types/node": "^20.0.0", "@types/uuid": "^10.0.0", "@vitest/coverage-v8": "^4.0.18", + "gitnexus-shared": "file:../gitnexus-shared", "tsx": "^4.0.0", "typescript": "^5.4.5", "vitest": "^4.0.18" @@ -65,6 +65,7 @@ }, "../gitnexus-shared": { "version": "1.0.0", + "dev": true, "devDependencies": { "typescript": "^6.0.2" } diff --git a/gitnexus/package.json b/gitnexus/package.json index 7d28a7878..48e388b11 100644 --- a/gitnexus/package.json +++ b/gitnexus/package.json @@ -46,7 +46,7 @@ "test:integration": "vitest run test/integration", "test:watch": "vitest", "test:coverage": "vitest run --coverage", - "prepare": "npm run build", + "prepare": "tsc", "prepack": "npm run build && chmod +x dist/cli/index.js" }, "dependencies": { @@ -86,6 +86,7 @@ "tree-sitter-swift": "^0.6.0" }, "devDependencies": { + "gitnexus-shared": "file:../gitnexus-shared", "@types/cli-progress": "^3.11.6", "@types/cors": "^2.8.17", "@types/express": "^4.17.21",