Skip to content

Commit

Permalink
fix anura building
Browse files Browse the repository at this point in the history
  • Loading branch information
Percslol committed Nov 10, 2024
1 parent ca290a2 commit 81c8d67
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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/.*/\/\/\/ <reference path="&" \/>/' > 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|.*|/// <reference path="&" />|' > anuraos-types/index.d.ts
jq '.version = "$(ANURA_VERSION)"' types-package.json > anuraos-types/package.json

css: src/*.css
Expand Down

0 comments on commit 81c8d67

Please sign in to comment.