Skip to content

fix(node): remove redundant postbuild:release script to fix build failure#3285

Merged
westonpace merged 1 commit into
lancedb:mainfrom
qingfeng-occ:fix_node_build_issue
May 4, 2026
Merged

fix(node): remove redundant postbuild:release script to fix build failure#3285
westonpace merged 1 commit into
lancedb:mainfrom
qingfeng-occ:fix_node_build_issue

Conversation

@qingfeng-occ

Copy link
Copy Markdown
Contributor

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

@github-actions github-actions Bot added the bug Something isn't working label Apr 17, 2026
@qingfeng-occ

Copy link
Copy Markdown
Contributor Author

Hi @wjones127 @jackye1995 @Xuanwo ,
Could anyone available please take a look at this PR? I'd really appreciate your feedback.
Thanks!

@westonpace westonpace left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for cleaning this up. I guess it raises a larger question of why we aren't using this in our publish workflows. Those use...

npx napi build --platform --release \
   --features ${{ matrix.settings.features }} \
   --target ${{ matrix.settings.target }} \
   --dts ../lancedb/native.d.ts \
   --js ../lancedb/native.js \
   --strip \
   $EXTRA_ARGS \
   --output-dir dist/

So we've already deviated a little on --strip.

@westonpace
westonpace merged commit 87b831b into lancedb:main May 4, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug(node): npm run build:release fails due to missing file in postbuild:release

2 participants