From dfe061558602ebe0b12ac2638710a609580e069b Mon Sep 17 00:00:00 2001 From: Taco de Wolff Date: Wed, 22 May 2024 08:28:02 -0400 Subject: [PATCH] Fix building from source for NodeJS binding --- bindings/js/Makefile | 2 ++ bindings/py/Makefile | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bindings/js/Makefile b/bindings/js/Makefile index 4514b16ae6..70fb8e4a78 100644 --- a/bindings/js/Makefile +++ b/bindings/js/Makefile @@ -15,6 +15,8 @@ all: build # called by node-gyp for build-from-source compile: + go mod init github.com/tdewolff/minify/bindings/py + go mod tidy go build -buildmode=c-archive -o minify.a minify.go build: diff --git a/bindings/py/Makefile b/bindings/py/Makefile index d76bbacfe5..171ee5f16f 100644 --- a/bindings/py/Makefile +++ b/bindings/py/Makefile @@ -9,8 +9,6 @@ compile: go build -buildmode=c-shared -o src/minify/minify.so build: compile - go mod init github.com/tdewolff/minify/bindings/py - go mod tidy python -m build --sdist publish: clean build