We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 11b6633 commit a6b936bCopy full SHA for a6b936b
1 file changed
Makefile
@@ -1,5 +1,8 @@
1
PUBLISHER_NAME = MichaelCurrin
2
-CLI_BUILD_DIR = build-cli
+CLI_BUILD_DIR ?= build-cli
3
+
4
+PKG_NODE_VERSION ?= node18
5
+TARGETS ?= $(PKG_NODE_VERSION)-linux,$(PKG_NODE_VERSION)-macos,$(PKG_NODE_VERSION)-win
6
7
default: install
8
@@ -64,8 +67,12 @@ cli-install:
64
67
65
68
# Build CLI tools for distribution.
66
69
cli-build:
70
+ npm run compile
71
72
rm -f $(CLI_BUILD_DIR)/*
- npm run cli:build
73
+ npx pkg out/cli/diffIndexGenerate.js --targets $(TARGETS) --output $(CLI_BUILD_DIR)/acm
74
+ npx pkg out/cli/diffIndexGenerateCommit.js --targets $(TARGETS) --output $(CLI_BUILD_DIR)/gacm
75
+ npx pkg out/cli/generate.js --targets $(TARGETS) --output $(CLI_BUILD_DIR)/auto_commit_msg_generate
76
77
78
### Deploy
0 commit comments