From 87b831bcae38af683b3da673f4d8a106bb711611 Mon Sep 17 00:00:00 2001 From: qingfeng-occ Date: Tue, 5 May 2026 00:37:18 +0800 Subject: [PATCH] fix(node): remove redundant `postbuild:release` script to fix build failure (#3285) The `build:release` command already outputs the `*.node` files directly to the `dist/` directory via the `--output-dir dist` flag. Therefore, the `postbuild:release` script, which attempts to copy `*.node` files from the `lancedb/` source directory, fails with a "no such file or directory" error because the source files do not exist there. This commit removes the redundant `postbuild:release` script to resolve the build failure. fix #3284 Signed-off-by: qingfeng-occ --- nodejs/package.json | 1 - 1 file changed, 1 deletion(-) diff --git a/nodejs/package.json b/nodejs/package.json index a57ccf48e..8c8b7a8d2 100644 --- a/nodejs/package.json +++ b/nodejs/package.json @@ -75,7 +75,6 @@ "build:debug": "napi build --platform --dts ../lancedb/native.d.ts --js ../lancedb/native.js --output-dir lancedb", "postbuild:debug": "shx mkdir -p dist && shx cp lancedb/*.node dist/", "build:release": "napi build --platform --release --dts ../lancedb/native.d.ts --js ../lancedb/native.js --output-dir dist", - "postbuild:release": "shx mkdir -p dist && shx cp lancedb/*.node dist/", "build": "npm run build:debug && npm run tsc", "build-release": "npm run build:release && npm run tsc", "tsc": "tsc -b",