Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6d5006a

Browse files
committed
Refactor TypeScript formatting target in Makefile
Change the fmt/biome target to fmt/ts to clarify its purpose of formatting TypeScript in the site directory.
1 parent 4ed47fc commit 6d5006a

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Makefile

+5-4
Original file line numberDiff line numberDiff line change
@@ -436,16 +436,16 @@ else
436436
endif
437437
.PHONY: fmt/ts
438438

439-
fmt/biome:
440-
echo "$(GREEN)==>$(RESET) $(BOLD)fmt/biome$(RESET)"
439+
fmt/ts:
440+
echo "$(GREEN)==>$(RESET) $(BOLD)fmt/ts$(RESET)"
441441
cd site
442442
# Avoid writing files in CI to reduce file write activity
443443
ifdef CI
444444
pnpm run format:check
445445
else
446446
pnpm run format
447447
endif
448-
.PHONY: fmt/biome
448+
.PHONY: fmt/ts
449449

450450
fmt/terraform: $(wildcard *.tf)
451451
echo "$(GREEN)==>$(RESET) $(BOLD)fmt/terraform$(RESET)"
@@ -644,7 +644,8 @@ vpn/vpn.pb.go: vpn/vpn.proto
644644

645645
site/src/api/typesGenerated.ts: $(wildcard scripts/apitypings/*) $(shell find ./codersdk $(FIND_EXCLUSIONS) -type f -name '*.go')
646646
go run ./scripts/apitypings/ > $@
647-
./scripts/pnpm_install.sh
647+
cd site
648+
../scripts/pnpm_install.sh
648649

649650
site/e2e/provisionerGenerated.ts: provisionerd/proto/provisionerd.pb.go provisionersdk/proto/provisioner.pb.go
650651
cd site

0 commit comments

Comments
 (0)