Skip to content

Commit 2b19afc

Browse files
committed
update makefile
1 parent 27b85cc commit 2b19afc

File tree

1 file changed

+7
-13
lines changed

1 file changed

+7
-13
lines changed

Makefile

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ BOLD := $(shell tput bold 2>/dev/null)
391391
GREEN := $(shell tput setaf 2 2>/dev/null)
392392
RESET := $(shell tput sgr0 2>/dev/null)
393393

394-
fmt: fmt/eslint fmt/prettier fmt/terraform fmt/shfmt fmt/go
394+
fmt: fmt/ts fmt/terraform fmt/shfmt fmt/go
395395
.PHONY: fmt
396396

397397
fmt/go:
@@ -401,22 +401,18 @@ fmt/go:
401401
go run mvdan.cc/gofumpt@v0.4.0 -w -l .
402402
.PHONY: fmt/go
403403

404-
fmt/eslint:
405-
echo "$(GREEN)==>$(RESET) $(BOLD)fmt/eslint$(RESET)"
406-
cd site
407-
pnpm run lint:fix
408-
.PHONY: fmt/eslint
409-
410-
fmt/prettier:
411-
echo "$(GREEN)==>$(RESET) $(BOLD)fmt/prettier$(RESET)"
404+
fmt/ts:
405+
echo "$(GREEN)==>$(RESET) $(BOLD)fmt/ts$(RESET)"
412406
cd site
413407
# Avoid writing files in CI to reduce file write activity
414408
ifdef CI
409+
pnpm run lint
415410
pnpm run format:check
416411
else
412+
pnpm run lint:fix
417413
pnpm run format
418414
endif
419-
.PHONY: fmt/prettier
415+
.PHONY: fmt/ts
420416

421417
fmt/terraform: $(wildcard *.tf)
422418
echo "$(GREEN)==>$(RESET) $(BOLD)fmt/terraform$(RESET)"
@@ -497,7 +493,6 @@ gen: \
497493
provisioner/terraform/testdata/version \
498494
site/.prettierrc.yaml \
499495
site/.prettierignore \
500-
site/.eslintignore \
501496
site/e2e/provisionerGenerated.ts \
502497
site/src/theme/icons.json \
503498
examples/examples.gen.json \
@@ -528,7 +523,6 @@ gen/mark-fresh:
528523
.prettierignore \
529524
site/.prettierrc.yaml \
530525
site/.prettierignore \
531-
site/.eslintignore \
532526
site/e2e/provisionerGenerated.ts \
533527
site/src/theme/icons.json \
534528
examples/examples.gen.json \
@@ -737,7 +731,7 @@ site/.prettierrc.yaml: .prettierrc.yaml
737731
# https://github.com/prettier/prettier/issues/8048
738732
# https://github.com/prettier/prettier/issues/8506
739733
# https://github.com/prettier/prettier/issues/8679
740-
site/.eslintignore site/.prettierignore: .prettierignore Makefile
734+
site/.prettierignore: .prettierignore Makefile
741735
rm -f "$@"
742736
touch "$@"
743737
# Skip generated by header, inherit `.prettierignore` header as-is.

0 commit comments

Comments
 (0)