build: use tsgo for type checking

I don't use and fancy typescript features, and apparently this version
is very usable at this point. Removes the typescript dependency, which
should have been in dev-deps anyway.
This commit is contained in:
Harvey Tindall
2025-12-09 17:31:23 +00:00
parent 833fd26091
commit ccf0584db8
4 changed files with 125 additions and 17 deletions
+3 -1
View File
@@ -1,6 +1,8 @@
.PHONY: configuration email typescript swagger copy compile compress inline-css variants-html install clean npm config-description config-default precompile test
.DEFAULT_GOAL := all
TS ?= npx tsgo
GOESBUILD ?= off
ifeq ($(GOESBUILD), on)
ESBUILD := esbuild
@@ -60,7 +62,7 @@ DEBUG ?= off
ifeq ($(DEBUG), on)
SOURCEMAP := --sourcemap
MINIFY :=
TYPECHECK := npx tsc -noEmit --project ts/tsconfig.json
TYPECHECK := $(TS) -noEmit --incremental --project ts/tsconfig.json
# jank
COPYTS := rm -r $(DATA)/web/js/ts; cp -r tempts $(DATA)/web/js/ts
UNCSS := cp $(CSS_BUNDLE) $(DATA)/bundle.css