Skip to content

Commit a6b936b

Browse files
committed
build: update Makefile
1 parent 11b6633 commit a6b936b

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

Makefile

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
PUBLISHER_NAME = MichaelCurrin
2-
CLI_BUILD_DIR = build-cli
2+
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
36

47
default: install
58

@@ -64,8 +67,12 @@ cli-install:
6467

6568
# Build CLI tools for distribution.
6669
cli-build:
70+
npm run compile
71+
6772
rm -f $(CLI_BUILD_DIR)/*
68-
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
6976

7077

7178
### Deploy

0 commit comments

Comments
 (0)