From 81c8d676bf37dce1262513cbd5ca70e154e731d0 Mon Sep 17 00:00:00 2001 From: Percs <83934299+Percslol@users.noreply.github.com> Date: Sun, 10 Nov 2024 17:11:31 -0600 Subject: [PATCH] fix anura building --- Makefile | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 68aad355..3b3d1cfa 100644 --- a/Makefile +++ b/Makefile @@ -162,8 +162,6 @@ watch: bundle FORCE bundle: tsc css lint milestone mkdir -p build/artifacts -DTS = $(shell cd build; find lib -type f -name "*.d.ts") -TYPE_FOLDERS = $(shell cd build; find lib -type d) ANURA_VERSION = $(shell jq -r '.version' package.json) tsc: @@ -172,10 +170,10 @@ tsc: npx tsc mkdir -p anuraos-types cd anuraos-types/; \ - mkdir -p $(TYPE_FOLDERS) + mkdir -p lib/ cd build/; \ - cp --parents $(DTS) ../anuraos-types/ - echo $(DTS) | sed 's/ \+/\n/g' | sed 's/.*/\/\/\/ /' > anuraos-types/index.d.ts + (find lib -type f -name "*.d.ts" -exec cp --parents {} ../anuraos-types/ \;) + (cd build && find lib -type f -name "*.d.ts") | sed 's/ \+/\n/g' | sed 's|.*|/// |' > anuraos-types/index.d.ts jq '.version = "$(ANURA_VERSION)"' types-package.json > anuraos-types/package.json css: src/*.css