Skip to content

Commit 0c13846

Browse files
committed
build(makefile): update to use npm scripts and add test/typecheck targets
- Delegate to npm scripts for consistency with package.json - Add test, typecheck, install, and preuninstall targets - Fix clean target to remove bun.lock instead of bun.lockb Signed-off-by: leocavalcante <leo@cavalcante.dev>
1 parent a2f1430 commit 0c13846

File tree

1 file changed

+17
-5
lines changed

1 file changed

+17
-5
lines changed

Makefile

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,28 @@
1-
.PHONY: lint lint-fix format clean postinstall
1+
.PHONY: lint lint-fix format test typecheck clean install preuninstall
2+
3+
install:
4+
bun install
25

36
lint:
4-
bunx biome check src/
7+
bun run lint
58

69
lint-fix:
7-
bunx biome check --write src/
10+
bun run lint:fix
811

912
format:
10-
bunx biome format --write src/
13+
bun run format
14+
15+
test:
16+
bun test
17+
18+
typecheck:
19+
bun run typecheck
1120

1221
postinstall:
1322
node postinstall.mjs
1423

24+
preuninstall:
25+
node preuninstall.mjs
26+
1527
clean:
16-
rm -rf node_modules bun.lockb
28+
rm -rf node_modules bun.lock

0 commit comments

Comments
 (0)