-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
44 lines (32 loc) · 921 Bytes
/
Copy pathMakefile
File metadata and controls
44 lines (32 loc) · 921 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
BUMP ?= patch
.PHONY: check build test lint format clean publish install bump-version help
help:
@echo "Available targets:"
@echo " make install - Install dependencies"
@echo " make check - Run typecheck and lint"
@echo " make build - Build the project"
@echo " make test - Run tests"
@echo " make lint - Run Biome linter"
@echo " make format - Format code with Biome"
@echo " make clean - Remove build artifacts"
@echo " make bump-version [BUMP=patch|minor|major|x.y.z] - Bump package version without tagging"
@echo " make publish - Publish to npm"
install:
bun install
check: lint typecheck
typecheck:
bun run typecheck
lint:
bunx biome check .
format:
bunx biome format . --write
build:
bun run build
test:
bun test ./__tests__/
clean:
rm -rf dist
bump-version:
npm version $(BUMP) --no-git-tag-version
publish: clean build test
npm publish