File tree 1 file changed +2
-6
lines changed
1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -9,12 +9,7 @@ YARN ?= npx yarn
9
9
SOURCES = $(wildcard src/* .js) $(wildcard src/pat/* .js) $(wildcard src/lib/* .js)
10
10
GENERATED = src/lib/depends_parse.js
11
11
12
- define get_package_var
13
- $(shell node -p "require('./package.json') .$(1 ) ")
14
- endef
15
- PACKAGE_NAME := $(shell node -p "'$(call get_package_var,name) '.replace('@patternslib/', '') ")
16
- PACKAGE_VERSION := $(call get_package_var,version)
17
-
12
+ PACKAGE_NAME = "patternslib"
18
13
19
14
all :: bundle css
20
15
@@ -62,6 +57,7 @@ bundle: stamp-yarn
62
57
$(YARN ) run build
63
58
64
59
release-zip : clean-dist bundle
60
+ $(eval PACKAGE_VERSION := $(shell node -p "require('./package.json') .version") )
65
61
@echo name is $(PACKAGE_NAME )
66
62
@echo version is $(PACKAGE_VERSION )
67
63
mkdir -p dist/$(PACKAGE_NAME ) -bundle-$(PACKAGE_VERSION )
You can’t perform that action at this time.
0 commit comments