Files
Rūdolfs Ošiņš f79b23dde7 Share UI code through an npm workspace
Extracts the avatar components and the style tokens into shared/ui, which
both apps consume as a workspace package, to try out ADR 2. Nix and the
Docker setups are not updated yet.
2026-10-29 16:27:03 +01:00

13 lines
376 B
Bash
Executable File

#!/usr/bin/env bash
set -Eeuo pipefail
echo "Copying katex assets into bundle directory"
# katex is hoisted to the workspace root, so resolve it rather than assuming
# a local node_modules.
dist="$(dirname "$(node -p 'require.resolve("katex/package.json")')")/dist"
mkdir -p public/fonts
cp -r "$dist/katex.min.css" public/katex.min.css
cp -r "$dist"/fonts/* public/fonts/