We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac9e20d commit e704909Copy full SHA for e704909
bindings/js/Makefile
@@ -1,6 +1,7 @@
1
SHELL=/usr/bin/env bash
2
HASH=`git log -1 --format="%H"`
3
VERSION=`git describe --tags --abbrev=0 | cut -b 2-`
4
+NODE_VERSION=`node -e 'console.log(require('./package.json').version);'`
5
6
# needed explicitly for Windows
7
export CGO_ENABLED=1
@@ -16,7 +17,7 @@ all: build
16
17
# called by node-gyp for build-from-source
18
compile:
19
go mod init
- go get github.com/tdewolff/minify/v2@${HASH}
20
+ go get github.com/tdewolff/minify/v2@${NODE_VERSION}
21
go build -buildmode=c-archive -o minify.a minify.go
22
23
build:
0 commit comments