Skip to content

Commit

Permalink
Fix building from source for NodeJS binding
Browse files Browse the repository at this point in the history
  • Loading branch information
tdewolff committed May 22, 2024
1 parent ef0d06b commit dfe0615
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 2 additions & 0 deletions bindings/js/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 0 additions & 2 deletions bindings/py/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit dfe0615

Please sign in to comment.