mirror of
https://github.com/abhigyanpatwari/GitNexus.git
synced 2026-09-30 01:51:20 +00:00
`scripts/build.js` assumes the monorepo sibling `gitnexus-shared`
exists. When a user runs `npm install` from within a global install
directory, the `prepare` lifecycle fires `build.js`, which calls
`execSync(tsc, { cwd: nonExistentPath })` — Node reports this as
the misleading `spawnSync /bin/sh ENOENT`.
Add an early guard: if `gitnexus-shared` is absent and `dist/`
already exists (published package context), exit cleanly. If neither
exists, print a helpful error pointing to the monorepo checkout.
Co-authored-by: Test <test@example.com>
|
||
|---|---|---|
| .. | ||
| bench-scope-resolution.ts | ||
| build-tree-sitter-dart.cjs | ||
| build-tree-sitter-proto.cjs | ||
| build-tree-sitter-swift.cjs | ||
| build.js | ||
| ci-list-migrated-languages.ts | ||
| cross-platform-tests.ts | ||
| install-duckdb-extension.mjs | ||
| materialize-vendor-grammars.cjs | ||
| run-cross-platform.ts | ||
| run-parity.ts | ||