Skip to content

Commit 6af1c15

Browse files
arbrandesclaude
andcommitted
fix: run tsc-alias after copying assets and limit asset copy to assets/ dirs
Move the asset copy step before tsc-alias so that .svg and .png files exist in dist/ when tsc-alias resolves @src path aliases. Also restrict image file copying to files under assets/ directories, excluding screenshots in slots/. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 805a694 commit 6af1c15

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,13 @@ clean:
3434

3535
build: clean
3636
tsc --project tsconfig.build.json
37-
tsc-alias -p tsconfig.build.json
38-
find src -type f \( -name '*.scss' -o -name '*.png' -o -name '*.svg' \) -exec sh -c '\
37+
find src -type f \( -name '*.scss' -o \( \( -name '*.png' -o -name '*.svg' \) -path '*/assets/*' \) \) -exec sh -c '\
3938
for f in "$$@"; do \
4039
d="dist/$${f#src/}"; \
4140
mkdir -p "$$(dirname "$$d")"; \
4241
cp "$$f" "$$d"; \
4342
done' sh {} +
43+
tsc-alias -p tsconfig.build.json
4444

4545
i18n.extract:
4646
# Pulling display strings from .jsx files into .json files...

0 commit comments

Comments
 (0)