From 92242c725b7f7bfa4615516571e623883fc7f579 Mon Sep 17 00:00:00 2001 From: dancoffman Date: Thu, 3 Nov 2022 23:14:11 -0700 Subject: [PATCH] Have gyp copy the .node file --- bindings/node.js/Makefile | 4 +--- bindings/node.js/binding.gyp | 15 +++++++++++++++ bindings/node.js/package.json | 1 + 3 files changed, 17 insertions(+), 3 deletions(-) diff --git a/bindings/node.js/Makefile b/bindings/node.js/Makefile index 5e94cb6..387b75b 100644 --- a/bindings/node.js/Makefile +++ b/bindings/node.js/Makefile @@ -6,11 +6,9 @@ clean: rm -f *.a rm -f *.o -build: kzg.cxx kzg.ts package.json Makefile +build: kzg.cxx kzg.ts package.json binding.gyp Makefile cd ../../src; make lib yarn node-gyp rebuild - cp build/Release/kzg.node . - cp build/Release/kzg.node ./dist test: build yarn jest diff --git a/bindings/node.js/binding.gyp b/bindings/node.js/binding.gyp index 86f4c29..08674bf 100644 --- a/bindings/node.js/binding.gyp +++ b/bindings/node.js/binding.gyp @@ -22,6 +22,21 @@ ], "dependencies": ["