continue-custom/extensions/vscode/scripts
Patrick Erichsen 291f8f5dd2
fix: ensure cross-target LanceDB binaries are correctly copied (#9100)
* fix: install lancedb binary for cross-target builds

* chore: add temporary darwin build workflow

* chore: remove temporary darwin workflow

* fix: prettier formatting in prepackage.js

Co-authored-by: nate <nate@continue.dev>

* fix: ensure cross-target LanceDB binaries copied

* fix: retain target lancedb binary in vsix

* Update prepackage.js

* fix: install LanceDB packages sequentially in binary build

The previous code ran installAndCopyNodeModules in parallel for all
targets, but they all write to node_modules/@lancedb. This caused
race conditions where files could be partially written or empty.

Changed to sequential installation to prevent file corruption.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

* chore: add diagnostic logging for lancedb copy

* chore: add detailed diagnostics to install-copy-nodemodule

* fix: remove cached lancedb before fresh copy

ncp's clobber option doesn't reliably overwrite cached files.
Delete destination directory before copying to ensure fresh install.

* chore: clean up diagnostic code, keep fix for cached lancedb

Root cause: ncp doesn't reliably overwrite cached files.
Fix: Remove destination directory before copying fresh lancedb binaries.

---------

Co-authored-by: continue[bot] <continue[bot]@users.noreply.github.com>
Co-authored-by: nate <nate@continue.dev>
Co-authored-by: Claude <noreply@anthropic.com>
2025-12-10 10:39:42 -08:00
..
download-copy-sqlite.js chore(vscode): rename download-copy-sqlite-esbuild.js to download-copy-sqlite.js and update imports 2025-09-29 15:14:19 +02:00
esbuild.js address feedback from recurse 2025-06-26 20:54:15 -07:00
generate-copy-config.js rename install nodemodules to npm-install 2025-06-06 23:17:58 +05:30
importMetaUrl.js 🎨 Refactor core (#1281) 2024-05-24 19:38:13 -07:00
install-copy-nodemodule.js fix: ensure cross-target LanceDB binaries are correctly copied (#9100) 2025-12-10 10:39:42 -08:00
npm-install.js rename install nodemodules to npm-install 2025-06-06 23:17:58 +05:30
package-all.js chore: fix import problems in package-all script 2025-07-07 12:28:46 +05:30
package.js add timer logs to prepackage 2025-07-28 21:11:40 -07:00
prepackage-cross-platform.js chore(vscode): remove unused copyTreeSitterTagQryFiles helper 2025-09-29 15:18:38 +02:00
prepackage.js Fix/lancedb cross target (#9033) 2025-12-08 10:42:08 -08:00
utils.js chore(vscode): remove stray statement in downloadRipgrepBinary 2025-09-29 22:47:19 +02:00
versionCheck.js npx prettier --check "extensions/vscode/**/*.{js,jsx,ts,tsx,json,css,md 2025-05-25 18:38:44 -07:00
write-build-timestamp.js pr_checks: write build timestamp before running tsc 2025-02-24 18:26:35 -05:00